ASPECT
sea_level.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 - 2023 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:
52 
56  void initialize() override;
57 
61  std::pair<std::string,std::string>
62  execute (TableHandler &statistics) override;
63 
72  double
74 
79  std::list<std::string>
81 
85  static
86  void
88 
92  void
94 
98  void save (std::map<std::string, std::string> &status_strings) const override;
99 
103  void load (const std::map<std::string, std::string> &status_strings) override;
104 
109  template <class Archive>
110  void serialize (Archive &ar, const unsigned int version);
111 
112  private:
118  double
120 
124  double
126 
133 
138 
144 
149 
153  std::unique_ptr<Utilities::StructuredDataLookup<2>> topography_lookup;
154  std::unique_ptr<Utilities::StructuredDataLookup<2>> ice_height_lookup;
155 
161 
166  double density_ice;
167 
172 
178 
187 
193 
194  };
195  }
196 }
197 
198 
199 #endif
std::list< std::string > required_other_postprocessors() const override
double compute_nonuniform_sea_level_change(const Point< dim > &position) const
std::string data_directory_ice_height
Definition: sea_level.h:143
void load(const std::map< std::string, std::string > &status_strings) override
void save(std::map< std::string, std::string > &status_strings) const override
void serialize(Archive &ar, const unsigned int version)
std::string data_directory_topography
Definition: sea_level.h:132
std::unique_ptr< Utilities::StructuredDataLookup< 2 > > topography_lookup
Definition: sea_level.h:153
double compute_total_surface_pressure(const Point< dim > &position) const
std::string data_file_name_ice_height
Definition: sea_level.h:148
std::string data_file_name_topography
Definition: sea_level.h:137
void parse_parameters(ParameterHandler &prm) override
std::unique_ptr< Utilities::StructuredDataLookup< 2 > > ice_height_lookup
Definition: sea_level.h:154
std::pair< std::string, std::string > execute(TableHandler &statistics) override
static void declare_parameters(ParameterHandler &prm)