From f11b7e40cfa68a73c0d210c31d321c351b40de0c Mon Sep 17 00:00:00 2001 From: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Date: Sun, 24 Jul 2022 14:18:23 -0700 Subject: 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> --- Source/Diagnostics/WarpXOpenPMD.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'Source/Diagnostics/WarpXOpenPMD.cpp') diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp index 6e73ab55d..e45b9239d 100644 --- a/Source/Diagnostics/WarpXOpenPMD.cpp +++ b/Source/Diagnostics/WarpXOpenPMD.cpp @@ -626,9 +626,6 @@ WarpXOpenPMDPlot::WriteOpenPMDParticles (const amrex::Vector& part * parser_filter(p, engine) * geometry_filter(p, engine); }, true); } else if (isBTD) { - tmp.SetParticleGeometry(0,pinned_pc->Geom(0)); - tmp.SetParticleBoxArray(0,pinned_pc->ParticleBoxArray(0)); - tmp.SetParticleDistributionMap(0, pinned_pc->ParticleDistributionMap(0)); tmp.copyParticles(*pinned_pc, true); } -- cgit v1.2.3