|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_StructureModelRegistry.H>#include <AMReX.H>#include <AMReX_ParmParse.H>#include <algorithm>#include <cstddef>#include <map>
Functions | |
| bool | register_structure_model (const std::string &name, StructureModelCreator creator) |
| Add a model to the registry; aborts on an empty name or a name registered twice. More... | |
| std::vector< std::string > | structure_model_names () |
| Names erf.structures.model accepts, sorted; empty when no model is compiled in. More... | |
| std::unique_ptr< StructureModel > | make_structure_model (const std::string &name, int max_level) |
| The model registered as name, or nullptr when no model has that name. More... | |
| std::unique_ptr< StructureModel > | make_structure_model_from_inputs (int max_level) |
| The model erf.structures.model selects, or nullptr when the key is not set. More... | |
| void | check_structure_plot_names (const StructureModel &model, const std::vector< std::string > &taken) |
| Stop the run when the model's plot_var_names() cannot all be plotted. More... | |
| void check_structure_plot_names | ( | const StructureModel & | model, |
| const std::vector< std::string > & | taken | ||
| ) |
Stop the run when the model's plot_var_names() cannot all be plotted.
Aborts, naming the model and the name, on an empty name, a name the model lists twice, or a name in taken (the names ERF and the other models already provide). ERF's plotfile assembly would otherwise drop the name from the list and still fill it, and fail with a less helpful message.
Referenced by ERF::appendPlot3DVariables().


| std::unique_ptr<StructureModel> make_structure_model | ( | const std::string & | name, |
| int | max_level | ||
| ) |
The model registered as name, or nullptr when no model has that name.
Referenced by make_structure_model_from_inputs().

| std::unique_ptr<StructureModel> make_structure_model_from_inputs | ( | int | max_level | ) |
The model erf.structures.model selects, or nullptr when the key is not set.
Aborts when the key names no registered model, listing the names this executable accepts.
Referenced by ERF::ERF_shared().


| bool register_structure_model | ( | const std::string & | name, |
| StructureModelCreator | creator | ||
| ) |
Add a model to the registry; aborts on an empty name or a name registered twice.
Called by ERF_REGISTER_STRUCTURE_MODEL; returns true so the macro can hold the result in a static variable.
| std::vector<std::string> structure_model_names | ( | ) |
Names erf.structures.model accepts, sorted; empty when no model is compiled in.
Referenced by make_structure_model_from_inputs().
