Skip to content

Commit

Permalink
MultiFabRegister: AMREX_ENUM Key Support
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Sep 20, 2024
1 parent 54bdb71 commit 4c2e507
Show file tree
Hide file tree
Showing 4 changed files with 456 additions and 76 deletions.
20 changes: 10 additions & 10 deletions Source/Python/MultiFabRegister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void init_MultiFabRegister (py::module & m)
std::optional<const amrex::Real>,
bool,
bool
>(&MultiFabRegister::alloc_init),
>(&MultiFabRegister::alloc_init<std::string>),
py::arg("name"),
py::arg("level"),
py::arg("ba"),
Expand All @@ -55,7 +55,7 @@ void init_MultiFabRegister (py::module & m)
std::optional<const amrex::Real>,
bool,
bool
>(&MultiFabRegister::alloc_init),
>(&MultiFabRegister::alloc_init<std::string>),
py::arg("name"),
py::arg("dir"),
py::arg("level"),
Expand All @@ -74,7 +74,7 @@ void init_MultiFabRegister (py::module & m)
std::string,
int,
std::optional<const amrex::Real>
>(&MultiFabRegister::alias_init),
>(&MultiFabRegister::alias_init<std::string, std::string>),
py::arg("new_name"),
py::arg("alias_name"),
py::arg("level"),
Expand All @@ -88,7 +88,7 @@ void init_MultiFabRegister (py::module & m)
ablastr::fields::Direction,
int,
std::optional<const amrex::Real>
>(&MultiFabRegister::alias_init),
>(&MultiFabRegister::alias_init<std::string, std::string>),
py::arg("new_name"),
py::arg("alias_name"),
py::arg("dir"),
Expand All @@ -107,7 +107,7 @@ void init_MultiFabRegister (py::module & m)
py::overload_cast<
std::string,
int
>(&MultiFabRegister::has, py::const_),
>(&MultiFabRegister::has<std::string>, py::const_),
py::arg("name"),
py::arg("level")
)
Expand All @@ -117,7 +117,7 @@ void init_MultiFabRegister (py::module & m)
std::string,
ablastr::fields::Direction,
int
>(&MultiFabRegister::has, py::const_),
>(&MultiFabRegister::has<std::string>, py::const_),
py::arg("name"),
py::arg("dir"),
py::arg("level")
Expand All @@ -127,7 +127,7 @@ void init_MultiFabRegister (py::module & m)
py::overload_cast<
std::string,
int
>(&MultiFabRegister::get),
>(&MultiFabRegister::get<std::string>),
py::arg("name"),
py::arg("level")
)
Expand All @@ -137,7 +137,7 @@ void init_MultiFabRegister (py::module & m)
std::string,
ablastr::fields::Direction,
int
>(&MultiFabRegister::get),
>(&MultiFabRegister::get<std::string>),
py::arg("name"),
py::arg("dir"),
py::arg("level")
Expand All @@ -152,7 +152,7 @@ void init_MultiFabRegister (py::module & m)
py::overload_cast<
std::string,
int
>(&MultiFabRegister::erase),
>(&MultiFabRegister::erase<std::string>),
py::arg("name"),
py::arg("level")
)
Expand All @@ -162,7 +162,7 @@ void init_MultiFabRegister (py::module & m)
std::string,
ablastr::fields::Direction,
int
>(&MultiFabRegister::erase),
>(&MultiFabRegister::erase<std::string>),
py::arg("name"),
py::arg("dir"),
py::arg("level")
Expand Down
Loading

0 comments on commit 4c2e507

Please sign in to comment.