diff options
author | 2019-06-14 19:14:05 -0700 | |
---|---|---|
committer | 2019-06-14 19:14:05 -0700 | |
commit | 6341fd5c5344f44a26603c16e95dfb31758c251e (patch) | |
tree | 33012b2c900891a225720063d1002a8ddb84534a /Source/Python/WarpXWrappers.cpp | |
parent | 3a6dac11bd60a88669dd3f86b065e7675e276098 (diff) | |
parent | 82f1b244dfa90f21a93738395ad78da7d6ccc7fd (diff) | |
download | WarpX-6341fd5c5344f44a26603c16e95dfb31758c251e.tar.gz WarpX-6341fd5c5344f44a26603c16e95dfb31758c251e.tar.zst WarpX-6341fd5c5344f44a26603c16e95dfb31758c251e.zip |
Merge branch 'python_update' into RZgeometry
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index 10e5ed8dd..3ed4830f5 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -20,11 +20,11 @@ namespace *shapes = (int*) malloc(shapesize * (*num_boxes) * sizeof(int)); double** data = (double**) malloc((*num_boxes) * sizeof(double*)); - int i = 0; #ifdef _OPENMP #pragma omp parallel #endif - for ( amrex::MFIter mfi(mf, false); mfi.isValid(); ++mfi, ++i ) { + for ( amrex::MFIter mfi(mf, false); mfi.isValid(); ++mfi ) { + int i = mfi.LocalIndex(); data[i] = (double*) mf[mfi].dataPtr(); for (int j = 0; j < AMREX_SPACEDIM; ++j) { (*shapes)[shapesize*i+j] = mf[mfi].box().length(j); |