ASPECT
sea_level.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2019 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 
22 #ifndef _aspect_postprocess_sea_level_h
23 #define _aspect_postprocess_sea_level_h
24 
27 
28 
29 namespace aspect
30 {
31  namespace Postprocess
32  {
33 
44  template <int dim>
45  class SeaLevel : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
46  {
47  public:
51  void initialize() override;
52 
56  std::pair<std::string,std::string>
57  execute (TableHandler &statistics) override;
58 
67  double
68  compute_total_surface_pressure(const Point<dim> &position) const;
69 
74  std::list<std::string>
75  required_other_postprocessors() const override;
76 
80  static
81  void
82  declare_parameters (ParameterHandler &prm);
83 
87  void
88  parse_parameters (ParameterHandler &prm) override;
89 
93  void save (std::map<std::string, std::string> &status_strings) const override;
94 
98  void load (const std::map<std::string, std::string> &status_strings) override;
99 
104  template <class Archive>
105  void serialize (Archive &ar, const unsigned int version);
106 
107  private:
113  double
114  compute_nonuniform_sea_level_change(const Point<dim> &position) const;
115 
119  double
121 
127 
133 
137  std::unique_ptr<Utilities::StructuredDataLookup<2>> topography_lookup;
138  std::unique_ptr<Utilities::StructuredDataLookup<2>> ice_height_lookup;
139 
144 
148  double density_ice;
149 
154 
159 
166 
172 
173  };
174  }
175 }
176 
177 
178 #endif
std::string data_directory_ice_height
Definition: sea_level.h:131
void save(std::map< std::string, std::string > &status_strings) const override
std::list< std::string > required_other_postprocessors() const override
std::unique_ptr< Utilities::StructuredDataLookup< 2 > > ice_height_lookup
Definition: sea_level.h:138
std::string data_file_name_topography
Definition: sea_level.h:126
std::pair< std::string, std::string > execute(TableHandler &statistics) override
std::unique_ptr< Utilities::StructuredDataLookup< 2 > > topography_lookup
Definition: sea_level.h:137
double compute_total_surface_pressure(const Point< dim > &position) const
void parse_parameters(ParameterHandler &prm) override
std::string data_file_name_ice_height
Definition: sea_level.h:132
static void declare_parameters(ParameterHandler &prm)
void load(const std::map< std::string, std::string > &status_strings) override
void serialize(Archive &ar, const unsigned int version)
double compute_nonuniform_sea_level_change(const Point< dim > &position) const
std::string data_directory_topography
Definition: sea_level.h:125