|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_DustModelRegistry.H>#include <ERF_IndexDefines.H>#include <AMReX.H>#include <AMReX_ParmParse.H>#include <map>
Functions | |
| bool | register_dust_model (const std::string &name, DustModelCreator creator) |
| Add a model to the registry; aborts on an empty name or a name registered twice. More... | |
| std::vector< std::string > | dust_model_names () |
| Names erf.dust.model accepts, sorted; empty when no model is compiled in. More... | |
| std::unique_ptr< DustModel > | make_dust_model (const std::string &name) |
| The model registered as name, or nullptr when no model has that name. More... | |
| std::unique_ptr< DustModel > | make_dust_model_from_inputs () |
| The model the inputs select, or nullptr when erf.dust.enable is not true. More... | |
| std::vector<std::string> dust_model_names | ( | ) |
Names erf.dust.model accepts, sorted; empty when no model is compiled in.
Referenced by make_dust_model_from_inputs().

| std::unique_ptr<DustModel> make_dust_model | ( | const std::string & | name | ) |
The model registered as name, or nullptr when no model has that name.
Referenced by make_dust_model_from_inputs().

| std::unique_ptr<DustModel> make_dust_model_from_inputs | ( | ) |
The model the inputs select, or nullptr when erf.dust.enable is not true.
erf.dust.model names the model; with one model compiled in it may be left out. Aborts when dust is enabled and no model, or no model of that name, is compiled in, listing the names this executable accepts, and when the model fills more dust scalars than the build has (NSCALARS_DUST).

| bool register_dust_model | ( | const std::string & | name, |
| DustModelCreator | creator | ||
| ) |
Add a model to the registry; aborts on an empty name or a name registered twice.
Called by ERF_REGISTER_DUST_MODEL; returns true so the macro can hold the result in a static variable.