Skip to content

Commit

Permalink
set default value for BTD buffer to 0 (ECP-WarpX#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan authored Apr 1, 2021
1 parent 2419643 commit b4c2ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Diagnostics/BTDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ BTDiagnostics::DefineFieldBufferMultiFab (const int i_buffer, const int lev)
int ngrow = 0;
m_mf_output[i_buffer][lev] = amrex::MultiFab ( buffer_ba, buffer_dmap,
m_varnames.size(), ngrow ) ;
m_mf_output[i_buffer][lev].setVal(0.);

amrex::IntVect ref_ratio = amrex::IntVect(1);
if (lev > 0 ) ref_ratio = WarpX::RefRatio(lev-1);
Expand Down

0 comments on commit b4c2ffe

Please sign in to comment.