Skip to content

Commit

Permalink
Merge pull request #271 from hklion/patch_netcdf_init
Browse files Browse the repository at this point in the history
only read masks from netcdf when initializing from file
  • Loading branch information
hklion authored Sep 13, 2024
2 parents 72766d6 + 377b2d3 commit 43852ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/REMORA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,11 @@ REMORA::init_only (int lev, Real time)
vec_rv2d[lev]->setVal(0.0_rt);

#ifdef REMORA_USE_NETCDF
amrex::Print() << "Calling init_masks_from_netcdf " << std::endl;
init_masks_from_netcdf(lev);
amrex::Print() << "Masks loaded from netcdf file \n " << std::endl;
if (solverChoice.ic_bc_type == IC_BC_Type::Real) {
amrex::Print() << "Calling init_masks_from_netcdf " << std::endl;
init_masks_from_netcdf(lev);
amrex::Print() << "Masks loaded from netcdf file \n " << std::endl;
}
#endif

set_bathymetry(lev);
Expand Down

0 comments on commit 43852ed

Please sign in to comment.