aboutsummaryrefslogtreecommitdiff
path: root/Python/WarpXProb.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2016-11-09 15:32:17 -0800
committerGravatar Dave Grote <grote1@llnl.gov> 2016-11-09 15:33:38 -0800
commitc1ec492a9788d7cc120d945721b1bfe4b0eb1d90 (patch)
tree84944eee22f19a360505a20bceccd79d280fe2d3 /Python/WarpXProb.cpp
parente79c90f63b188bd8a45d6feb087861d90b0a7076 (diff)
downloadWarpX-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.cpp17
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);
+ }
+}