Skip to content

Commit

Permalink
Add to ParallelDescriptor.cpp (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote authored Jul 17, 2023
1 parent df2f903 commit 6b6439e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Base/ParallelDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ using namespace amrex;
void init_ParallelDescriptor(py::module &m) {
auto mpd = m.def_submodule("ParallelDescriptor");

mpd.def("NProcs", py::overload_cast<>(&ParallelDescriptor::NProcs));
mpd.def("NProcs", py::overload_cast<>(&ParallelDescriptor::NProcs))
.def("MyProc", py::overload_cast<>(&ParallelDescriptor::MyProc))
.def("IOProcessor", py::overload_cast<>(&ParallelDescriptor::IOProcessor))
.def("IOProcessorNumber", py::overload_cast<>(&ParallelDescriptor::IOProcessorNumber))
;
// ...
}

0 comments on commit 6b6439e

Please sign in to comment.