Skip to content

Commit f56da4a

Browse files
authored
MultiFab: Allow Dynamic Attributes (#500)
Allow to add attributes dynamically to the `MultiFab` type. Needed for: BLAST-WarpX/warpx#6344 Background: https://pybind11.readthedocs.io/en/stable/classes.html#dynamic-attributes
1 parent b453c62 commit f56da4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Base/MultiFab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void init_MultiFab(py::module &m, py::class_< amrex::MFIter > & py_MFIter)
2020
{
2121
using namespace amrex;
2222

23-
py::class_< MultiFab, FabArray<FArrayBox> > py_MultiFab(m, "MultiFab");
23+
py::class_< MultiFab, FabArray<FArrayBox> > py_MultiFab(m, "MultiFab", py::dynamic_attr());
2424

2525
py_MFIter
2626
.def("__repr__",

0 commit comments

Comments
 (0)