Skip to content

Commit

Permalink
Merge pull request seahorce-scidac#226 from hklion/fix_restart
Browse files Browse the repository at this point in the history
checkpoint bathymetry
  • Loading branch information
hklion authored Jul 13, 2024
2 parents 1a59b26 + cabdd0d commit 86169a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/IO/Checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ REMORA::WriteCheckpointFile () const

VisMF::Write(*(vec_zeta[lev]), amrex::MultiFabFileFullPrefix(lev, checkpointname, "Level_", "zeta"));
VisMF::Write(*(vec_Zt_avg1[lev]), amrex::MultiFabFileFullPrefix(lev, checkpointname, "Level_", "Zt_avg1"));

VisMF::Write(*(vec_hOfTheConfusingName[lev]), amrex::MultiFabFileFullPrefix(lev, checkpointname, "Level_", "h"));
}

#ifdef REMORA_USE_PARTICLES
Expand Down Expand Up @@ -432,6 +434,8 @@ REMORA::ReadCheckpointFile ()
VisMF::Read(*(vec_zeta[lev]), amrex::MultiFabFileFullPrefix(lev, restart_chkfile, "Level_", "zeta"));
VisMF::Read(*(vec_Zt_avg1[lev]), amrex::MultiFabFileFullPrefix(lev, restart_chkfile, "Level_", "Zt_avg1"));

VisMF::Read(*(vec_hOfTheConfusingName[lev]), amrex::MultiFabFileFullPrefix(lev, restart_chkfile, "Level_", "h"));

stretch_transform(lev);
}

Expand Down

0 comments on commit 86169a1

Please sign in to comment.