aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> 2021-11-01 20:53:43 -0700
committerGravatar GitHub <noreply@github.com> 2021-11-02 03:53:43 +0000
commit957262bb8d4227dea5655d4a736fa462931838be (patch)
tree5921363a5413261a9dc8476ea8f48eae5c25d310 /Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
parente459e3a519855dc96c7526ce2318573ccd74baae (diff)
downloadWarpX-957262bb8d4227dea5655d4a736fa462931838be.tar.gz
WarpX-957262bb8d4227dea5655d4a736fa462931838be.tar.zst
WarpX-957262bb8d4227dea5655d4a736fa462931838be.zip
Close BTD Snapshot when last slice is filled in. (#2516)
* Add logic to close snapshot when the last slice, with index 0, is filled * fix eol * call flush as soon as last valid Zslice is full * clean up unwanted print statements * add comments in code and doxygen comments * remove commented line * fix eol * add doxygen comments and describe the new parameter introduced in the function * fix typo from Axel Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja> * Update Source/Diagnostics/BTDiagnostics.cpp * Update Source/Diagnostics/BTDiagnostics.cpp * snake_style * fix eol * modified code so we dont use level info when setting snapshot full info Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp')
-rw-r--r--Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
index 4af43b4b8..0b8830c83 100644
--- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
+++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
@@ -119,15 +119,15 @@ BackTransformFunctor::operator ()(amrex::MultiFab& mf_dst, int /*dcomp*/, const
void
BackTransformFunctor::PrepareFunctorData (int i_buffer,
- bool ZSliceInDomain, amrex::Real current_z_boost,
+ bool z_slice_in_domain, amrex::Real current_z_boost,
amrex::Box buffer_box, const int k_index_zlab,
- const int max_box_size )
+ const int max_box_size, const int snapshot_full)
{
m_buffer_box[i_buffer] = buffer_box;
m_current_z_boost[i_buffer] = current_z_boost;
m_k_index_zlab[i_buffer] = k_index_zlab;
m_perform_backtransform[i_buffer] = 0;
- if (ZSliceInDomain) m_perform_backtransform[i_buffer] = 1;
+ if (z_slice_in_domain == true and snapshot_full == 0) m_perform_backtransform[i_buffer] = 1;
m_max_box_size = max_box_size;
}