From 377b2d3005a5d008a9e0bdf978dca986a25d6116 Mon Sep 17 00:00:00 2001 From: Hannah Klion Date: Fri, 13 Sep 2024 10:35:38 -0700 Subject: [PATCH] only read masks from netcdf when initializing from file --- Source/REMORA.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/REMORA.cpp b/Source/REMORA.cpp index 214db8d..251f75d 100644 --- a/Source/REMORA.cpp +++ b/Source/REMORA.cpp @@ -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);