diff options
author | 2022-07-24 14:18:23 -0700 | |
---|---|---|
committer | 2022-07-24 14:18:23 -0700 | |
commit | f11b7e40cfa68a73c0d210c31d321c351b40de0c (patch) | |
tree | 9c7f044fe8114a4ee283d7c7604b20ac558e8254 /Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | |
parent | bc835fae43bf604b8693adcf93261e807b485877 (diff) | |
download | WarpX-f11b7e40cfa68a73c0d210c31d321c351b40de0c.tar.gz WarpX-f11b7e40cfa68a73c0d210c31d321c351b40de0c.tar.zst WarpX-f11b7e40cfa68a73c0d210c31d321c351b40de0c.zip |
Bug fix for BTD - particle BA, and geom, same as field buffer (#3056)
* fix BTD particle container BA, geom, and add assert for probhi == 0
* fix bug with mesh-refinement
* delete commented line
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* with offset added, we dont need the assert anymore
* similar to plotfile, openpmd also initializes tmp from pinned pc, and no need to reset BA
* commenting out the assert
* changes consistent with #3201
* unused var warning fix
* Compute snapshot box at init, expand and shrink buffer BA and particle BA before and after redistribute, close buffer when klab_current == k_lo for that buffer
* unused var
* turning off particle output in BTD CI tests for plotfiles
* reset particle BA only if species output is finite
* add particle output for plotfile format for BTD tests
* add openpmd diags back in 2d test case
* fix input to have the right format
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 4655128d5..22043c108 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -305,9 +305,7 @@ FlushFormatPlotfile::WriteParticles(const std::string& dir, auto tmp = pc->make_alike<amrex::PinnedArenaAllocator>(); if (isBTD) { PinnedMemoryParticleContainer* pinned_pc = particle_diags[i].getPinnedParticleContainer(); - tmp.SetParticleGeometry(0,pinned_pc->Geom(0)); - tmp.SetParticleBoxArray(0,pinned_pc->ParticleBoxArray(0)); - tmp.SetParticleDistributionMap(0, pinned_pc->ParticleDistributionMap(0)); + tmp = pinned_pc->make_alike<amrex::PinnedArenaAllocator>(); } Vector<std::string> real_names; |