Skip to content

Commit

Permalink
Add doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jul 21, 2023
1 parent 5b0d334 commit 48c36dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Base/AMReX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ void init_AMReX(py::module& m)
}, py::return_value_policy::reference,
"Initialize AMReX library");

m.def("initialized", &Initialized);
m.def("size", &AMReX::size);
m.def("initialized", &Initialized,
"Returns true if there are any currently-active and initialized "
"AMReX instances (i.e. one for which amrex::Initialize has been called, "
"and amrex::Finalize has not). Otherwise false.");
m.def("size", &AMReX::size,
"The amr stack size, the number of amr instances pushed.");

constexpr auto run_gc = []() {
// explicitly run the garbage collector, so deleted objects
Expand Down

0 comments on commit 48c36dc

Please sign in to comment.