/home/runner/work/spades/spades/Source/RunTime.H File Reference
SPADES API
|
Include dependency graph for RunTime.H:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | RunTime |
class | TemplatedRunTime< Model > |
Functions | |
void | create_and_run_model (const std::string &model_name) |
Function Documentation
◆ create_and_run_model()
void create_and_run_model | ( | const std::string & | model_name | ) |
53{
54 std::unique_ptr<RunTime> runtime;
55
56 if (model_name == "phold") {
57 spades::models::Phold model;
58 runtime =
59 std::make_unique<TemplatedRunTime<spades::models::Phold>>(model);
60 runtime->run();
61 } else {
62 amrex::Abort("Invalid model type" + model_name);
63 }
64}
Here is the caller graph for this function:
Generated by