22 #ifndef _aspect_geometry_model_initial_topography_model_interface_h 23 #define _aspect_geometry_model_initial_topography_model_interface_h 26 #include <deal.II/base/parameter_handler.h> 27 #include <deal.II/base/point.h> 42 namespace InitialTopographyModel
53 class Interface :
public Plugins::InterfaceBase
67 double value (
const Point<dim-1> &surface_point)
const = 0;
73 double max_topography ()
const = 0;
96 const std::string &description,
97 void (*declare_parameters_function) (ParameterHandler &),
98 std::unique_ptr<Interface<dim>> (*factory_function) ());
111 std::unique_ptr<Interface<dim>>
147 #define ASPECT_REGISTER_INITIAL_TOPOGRAPHY_MODEL(classname,name,description) \ 148 template class classname<2>; \ 149 template class classname<3>; \ 150 namespace ASPECT_REGISTER_INITIAL_TOPOGRAPHY_MODEL_ ## classname \ 152 aspect::internal::Plugins::RegisterHelper<aspect::InitialTopographyModel::Interface<2>,classname<2>> \ 153 dummy_ ## classname ## _2d (&aspect::InitialTopographyModel::register_initial_topography_model<2>, \ 154 name, description); \ 155 aspect::internal::Plugins::RegisterHelper<aspect::InitialTopographyModel::Interface<3>,classname<3>> \ 156 dummy_ ## classname ## _3d (&aspect::InitialTopographyModel::register_initial_topography_model<3>, \ 157 name, description); \ void register_initial_topography_model(const std::string &name, const std::string &description, void(*declare_parameters_function)(ParameterHandler &), std::unique_ptr< Interface< dim >>(*factory_function)())
std::unique_ptr< Interface< dim > > create_initial_topography_model(ParameterHandler &prm)
void declare_parameters(ParameterHandler &prm)
void write_plugin_graph(std::ostream &output_stream)