-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrapper for concatenate function in amrex
- Loading branch information
1 parent
0354504
commit 393c84e
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ foreach(D IN LISTS AMReX_SPACEDIM) | |
Periodicity.cpp | ||
PODVector.cpp | ||
Vector.cpp | ||
Utility.cpp | ||
) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright 2021-2022 The AMReX Community | ||
* | ||
* License: BSD-3-Clause-LBNL | ||
*/ | ||
#include <AMReX_Utility.H> | ||
#include <pybind11/pybind11.h> | ||
#include <sstream> | ||
|
||
namespace py = pybind11; | ||
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"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters