Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pyRamsesModel.cpp File Reference
Include dependency graph for pyRamsesModel.cpp:

Go to the source code of this file.

Namespaces

namespace  shammodels
 namespace for models
namespace  shammodels::basegodunov
 namespace for the basegodunov model

Typedefs

using VariantAMRGodunovBind = std::variant<std::unique_ptr<Model<f64_3, i64_3>>>

Functions

template<class Tvec, class TgridVec>
void shammodels::basegodunov::add_instance (py::module &m, std::string name_config, std::string name_model)
 add_instance< f64_3, i64_3 > (mramses, base_name+"_f64_3_i64_3_SolverConfig", base_name+"_f64_3_i64_3_Model")
def ("get_Model_Ramses", [](ShamrockCtx &ctx, std::string vector_type, std::string grid_repr) -> VariantAMRGodunovBind { VariantAMRGodunovBind ret;if(vector_type=="f64_3" &&grid_repr=="i64_3") { ret=std::make_unique< Model< f64_3, i64_3 > >(ctx);} else { throw shambase::make_except_with_loc< std::invalid_argument >("unknown combination of representation and grid_repr");} return ret;}, py::kw_only(), py::arg("context"), py::arg("vector_type"), py::arg("grid_repr"))

Variables

 ON_PYTHON_INIT
py::module mramses = m.def_submodule("model_ramses", "Shamrock Ramses solver")
std::string base_name = "RamsesModel"

Detailed Description

Typedef Documentation

◆ VariantAMRGodunovBind

using VariantAMRGodunovBind = std::variant<std::unique_ptr<Model<f64_3, i64_3>>>

Definition at line 378 of file pyRamsesModel.cpp.

Variable Documentation

◆ base_name

std::string base_name = "RamsesModel"

Definition at line 372 of file pyRamsesModel.cpp.

◆ mramses

py::module mramses = m.def_submodule("model_ramses", "Shamrock Ramses solver")

Definition at line 370 of file pyRamsesModel.cpp.

◆ ON_PYTHON_INIT

ON_PYTHON_INIT
Initial value:
{
auto &m = root_module

Definition at line 367 of file pyRamsesModel.cpp.