aboutsummaryrefslogtreecommitdiff
path: root/Source/Python
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-09-04 11:06:11 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-09-04 11:06:11 -0700
commit59854e642fe2c099be8f487acc4cea8acfb7b823 (patch)
tree0f1f8721004ac3a9890a24c85cb06faf1b4401b4 /Source/Python
parent0b20cd13ba04d99fe6a35e49b124bb58571bee5a (diff)
parent28e5d28cf8974603ccc1125fa33875460936b512 (diff)
downloadWarpX-59854e642fe2c099be8f487acc4cea8acfb7b823.tar.gz
WarpX-59854e642fe2c099be8f487acc4cea8acfb7b823.tar.zst
WarpX-59854e642fe2c099be8f487acc4cea8acfb7b823.zip
Merge branch 'dev' into generalize_nodal_deposition
Diffstat (limited to 'Source/Python')
-rw-r--r--Source/Python/WarpXWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 3ed4830f5..a60efd498 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -29,7 +29,7 @@ namespace
for (int j = 0; j < AMREX_SPACEDIM; ++j) {
(*shapes)[shapesize*i+j] = mf[mfi].box().length(j);
}
- if (mf.nComp() > 1) (*shapes)[shapesize*i+2] = mf.nComp();
+ if (mf.nComp() > 1) (*shapes)[shapesize*i+AMREX_SPACEDIM] = mf.nComp();
}
return data;
}