aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/BTDiagnostics.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/BTDiagnostics.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/BTDiagnostics.cpp')
-rw-r--r--Source/Diagnostics/BTDiagnostics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Diagnostics/BTDiagnostics.cpp b/Source/Diagnostics/BTDiagnostics.cpp
index 71c7eceb1..d6d4a249a 100644
--- a/Source/Diagnostics/BTDiagnostics.cpp
+++ b/Source/Diagnostics/BTDiagnostics.cpp
@@ -725,6 +725,7 @@ BTDiagnostics::Flush (int i_buffer)
}
SetSnapshotFullStatus(i_buffer);
bool isLastBTDFlush = ( m_snapshot_full[i_buffer] == 1 ) ? true : false;
+ bool const use_pinned_pc = true;
bool const isBTD = true;
double const labtime = m_t_lab[i_buffer];
@@ -777,7 +778,7 @@ BTDiagnostics::Flush (int i_buffer)
m_varnames, m_mf_output[i_buffer], m_geom_output[i_buffer], warpx.getistep(),
labtime, m_output_species[i_buffer], nlev_output, file_name, m_file_min_digits,
m_plot_raw_fields, m_plot_raw_fields_guards,
- isBTD, i_buffer, m_geom_snapshot[i_buffer][0], isLastBTDFlush,
+ use_pinned_pc, isBTD, i_buffer, m_geom_snapshot[i_buffer][0], isLastBTDFlush,
m_totalParticles_flushed_already[i_buffer]);
for (int isp = 0; isp < m_particles_buffer.at(i_buffer).size(); ++isp) {