Skip to content

Commit

Permalink
user-facing function with py::arg
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
  • Loading branch information
RevathiJambunathan and ax3l authored Jul 18, 2023
1 parent b51e139 commit 30a2d0a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Base/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ using namespace amrex;
void init_Utility(py::module& m)
{
m.def("concatenate",
[] (const std::string& root,
int num,
int mindigits) {
return amrex::Concatenate(root, num, mindigits);
}, py::return_value_policy::move,
"Builds plotfile name");
&amrex::Concatenate,
"Builds plotfile name",
py::arg("root"), py::arg("num"), py::arg("mindigits")=5
);
}

0 comments on commit 30a2d0a

Please sign in to comment.