diff options
author | 2016-11-09 15:32:17 -0800 | |
---|---|---|
committer | 2016-11-09 15:33:38 -0800 | |
commit | c1ec492a9788d7cc120d945721b1bfe4b0eb1d90 (patch) | |
tree | 84944eee22f19a360505a20bceccd79d280fe2d3 /Python/WarpXProb.cpp | |
parent | e79c90f63b188bd8a45d6feb087861d90b0a7076 (diff) | |
download | WarpX-c1ec492a9788d7cc120d945721b1bfe4b0eb1d90.tar.gz WarpX-c1ec492a9788d7cc120d945721b1bfe4b0eb1d90.tar.zst WarpX-c1ec492a9788d7cc120d945721b1bfe4b0eb1d90.zip |
Initial python wrapped version
Diffstat (limited to 'Python/WarpXProb.cpp')
-rw-r--r-- | Python/WarpXProb.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Python/WarpXProb.cpp b/Python/WarpXProb.cpp new file mode 100644 index 000000000..c1534af68 --- /dev/null +++ b/Python/WarpXProb.cpp @@ -0,0 +1,17 @@ + +// +// Each problem must have its own version of WarpX::InitLevelData(int lev) +// to initialize the field data on this level. +// + +#include <WarpX.H> + +void +WarpX::InitLevelData (int lev) +{ + for (int i = 0; i < BL_SPACEDIM; ++i) { + current[lev][i]->setVal(0.0); + Efield[lev][i]->setVal(0.0); + Bfield[lev][i]->setVal(0.0); + } +} |