From c1ec492a9788d7cc120d945721b1bfe4b0eb1d90 Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Wed, 9 Nov 2016 15:32:17 -0800 Subject: Initial python wrapped version --- Python/WarpXProb.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Python/WarpXProb.cpp (limited to 'Python/WarpXProb.cpp') 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 + +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); + } +} -- cgit v1.2.3