-
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.
adding wrapper for writing single level plotfile and vector construct…
…or for strings (#153)
- Loading branch information
1 parent
0853cbf
commit 4202de6
Showing
4 changed files
with
49 additions
and
2 deletions.
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
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,33 @@ | ||
/* Copyright 2021-2022 The AMReX Community | ||
* | ||
* License: BSD-3-Clause-LBNL | ||
*/ | ||
#include "pyAMReX.H" | ||
|
||
#include <AMReX_PlotFileUtil.H> | ||
#include <AMReX_Vector.H> | ||
#include <AMReX_Print.H> | ||
|
||
#include <sstream> | ||
#include <string> | ||
|
||
namespace py = pybind11; | ||
using namespace amrex; | ||
|
||
void init_PlotFileUtil(py::module& m) | ||
{ | ||
m.def("write_single_level_plotfile", | ||
&amrex::WriteSingleLevelPlotfile, | ||
"Writes single level plotfile", | ||
py::arg("plotfilename"), | ||
py::arg("mf"), | ||
py::arg("varnames"), | ||
py::arg("geom"), | ||
py::arg("time"), | ||
py::arg("level_step"), | ||
py::arg("versionName")="HyperCLaw-V1.1", | ||
py::arg("levelPrefix")="Level_", | ||
py::arg("mfPrefix")="Cell", | ||
py::arg("extra_dirs")=Vector<std::string>() | ||
); | ||
} |
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
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