diff options
author | 2019-09-03 20:37:16 -0700 | |
---|---|---|
committer | 2019-09-03 20:37:16 -0700 | |
commit | 01267866302e1a4a3e53c87e53730cdbe70111b1 (patch) | |
tree | 1377521057f6f582df9936e937843657e1570873 /Source/Python/WarpXWrappers.cpp | |
parent | 0d9d7eeedbe1710d2b0382219d0a158ea4025d50 (diff) | |
parent | 5a07983f9d618a0fcc16859b30bd970b3e4696a5 (diff) | |
download | WarpX-01267866302e1a4a3e53c87e53730cdbe70111b1.tar.gz WarpX-01267866302e1a4a3e53c87e53730cdbe70111b1.tar.zst WarpX-01267866302e1a4a3e53c87e53730cdbe70111b1.zip |
Merge pull request #148 from ECP-WarpX/RZgeometry
RZ multimode geometry
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 2 |
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; } |