Skip to content

Commit

Permalink
MultiFab: Fix Constructor Defaults (AMReX-Codes#306)
Browse files Browse the repository at this point in the history
Avoid that a EB factory has to be passed if one wants to change the
allocator of a MultiFab.
  • Loading branch information
ax3l authored May 1, 2024
1 parent dd47be0 commit 51898e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Base/MultiFab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,23 @@ void init_MultiFab(py::module &m)
py::arg("info"), py::arg("factory"),
doc_mf_init
)
.def(py::init< const BoxArray&, const DistributionMapping&, int, int,
MFInfo const & >(),
py::arg("bxs"), py::arg("dm"), py::arg("ncomp"), py::arg("ngrow"),
py::arg("info"),
doc_mf_init
)
.def(py::init< const BoxArray&, const DistributionMapping&, int, int>(),
py::arg("bxs"), py::arg("dm"), py::arg("ncomp"), py::arg("ngrow"),
doc_mf_init
)

.def(py::init< const BoxArray&, const DistributionMapping&, int, IntVect const&,
MFInfo const& >(),
py::arg("bxs"), py::arg("dm"), py::arg("ncomp"), py::arg("ngrow"),
py::arg("info"),
doc_mf_init
)
.def(py::init< const BoxArray&, const DistributionMapping&, int, IntVect const&,
MFInfo const&, FabFactory<FArrayBox> const & >(),
py::arg("bxs"), py::arg("dm"), py::arg("ncomp"), py::arg("ngrow"),
Expand Down

0 comments on commit 51898e4

Please sign in to comment.