diff options
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); + } +} |