aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2022-08-03 13:34:11 -0700
committerGravatar GitHub <noreply@github.com> 2022-08-03 13:34:11 -0700
commit0a4d82fd5c514760871d11c8db037f560f07bc89 (patch)
tree0e322ae83a9aa4b71020a315ff91e4384e0cca6b /Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
parenta4c36c317403d2b8050524ba2a37d8d237b0df32 (diff)
downloadWarpX-0a4d82fd5c514760871d11c8db037f560f07bc89.tar.gz
WarpX-0a4d82fd5c514760871d11c8db037f560f07bc89.tar.zst
WarpX-0a4d82fd5c514760871d11c8db037f560f07bc89.zip
Implement output of scraped particles at domain boundaries (#3274)
* Implement scraping from all boundaries * Update input script * Output all particles to the same buffer * Dump different boundaries into different files * Avoid writing species that are not allocated * Improve documentation * Allow output of some boundaries only * Correct compilation error * Fixes and updates to BoundaryScraping * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: Remi Lehe <remi.lehe@normalesup.org> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
index e7874c4ff..4c7c9ab81 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
@@ -113,6 +113,7 @@ FlushFormatOpenPMD::WriteToFile (
const amrex::Vector<ParticleDiag>& particle_diags, int output_levels,
const std::string prefix, int file_min_digits, bool plot_raw_fields,
bool plot_raw_fields_guards,
+ const bool use_pinned_pc,
bool isBTD, int snapshotID, const amrex::Geometry& full_BTD_snapshot,
bool isLastBTDFlush, const amrex::Vector<int>& totalParticlesFlushedAlready) const
{
@@ -137,7 +138,7 @@ FlushFormatOpenPMD::WriteToFile (
varnames, mf, geom, output_levels, output_iteration, time, isBTD, full_BTD_snapshot);
// particles: all (reside only on locally finest level)
- m_OpenPMDPlotWriter->WriteOpenPMDParticles(particle_diags, isBTD, isLastBTDFlush, totalParticlesFlushedAlready);
+ m_OpenPMDPlotWriter->WriteOpenPMDParticles(particle_diags, use_pinned_pc, isBTD, isLastBTDFlush, totalParticlesFlushedAlready);
// signal that no further updates will be written to this iteration
m_OpenPMDPlotWriter->CloseStep(isBTD, isLastBTDFlush);