34 using namespace Utilities;
38 namespace OceanicPlateModels
44 min_depth(NaN::
DSNAN),
48 this->
name =
"uniform";
60 "Uniform compositional model. Sets constant compositional field.");
64 "The depth in meters from which the composition of this feature is present.");
66 "The depth in meters to which the composition of this feature is present.");
68 "A list with the labels of the composition which are present there.");
70 "TA list of compositional fractions corresponding to the compositions list.");
71 prm.
declare_entry(
"operation",
Types::String(
"replace", std::vector<std::string> {
"replace",
"replace defined only",
"add",
"subtract"}),
72 "Whether the value should replace any value previously defined at this location (replace) or " 73 "add the value to the previously define value. Replacing implies that all compositions not " 74 "explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.");
90 "There are not the same amount of compositions and fractions.");
98 const unsigned int composition_number,
103 if (depth <= max_depth && depth >=
min_depth)
107 if (depth <= max_depth_local && depth >= min_depth_local)
#define WB_REGISTER_FEATURE_OCEANIC_PLATE_COMPOSITION_MODEL(classname, name)
Operations string_operations_to_enum(const std::string &operation)
Point< 2 > get_surface_point() const
#define WBAssertThrow(condition, message)
WorldBuilder::World * world
SurfaceValueInfo local_value(const Point< 2 > &check_point) const
double apply_operation(const Operations operation, const double old_value, const double new_value)
void declare_entry(const std::string &name, const Types::Interface &type, const std::string &documentation)
std::vector< T > get_vector(const std::string &name)
T get(const std::string &name)