Skip to content

Commit

Permalink
Merge pull request #114 from RevathiJambunathan/initmacrobeforediag
Browse files Browse the repository at this point in the history
init macro before init diag
  • Loading branch information
ajnonaka authored Feb 27, 2024
2 parents 6492290 + 548d181 commit deb6f3f
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 deb6f3f

Please sign in to comment.