Skip to content

Commit

Permalink
init macro before init diag
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Feb 27, 2024
1 parent 6492290 commit 548d181
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,18 @@ WarpX::InitData ()
ComputeDt();
WarpX::PrintDtDxDyDz();
InitFromScratch();
if (WarpX::em_solver_medium==1) {
m_macroscopic_properties->InitData();
}
InitDiagnostics();
}
else
{
InitFromCheckpoint();
WarpX::PrintDtDxDyDz();
if (WarpX::em_solver_medium==1) {
m_macroscopic_properties->InitData();
}
PostRestart();
reduced_diags->InitData();
}
Expand All @@ -414,9 +420,6 @@ WarpX::InitData ()

BuildBufferMasks();

if (WarpX::em_solver_medium==1) {
m_macroscopic_properties->InitData();
}

if (WarpX::yee_coupled_solver_algo == CoupledYeeSolver::MaxwellLondon) {
amrex::Print() << " calling london \n";
Expand Down

0 comments on commit 548d181

Please sign in to comment.