Skip to content

Commit

Permalink
Merge branch 'development' into SmagMost
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Jan 26, 2024
2 parents ed5a09a + bc627f2 commit 3bc1062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/IO/Checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ ERF::WriteCheckpointFile () const

#ifdef ERF_USE_NETCDF
// Write bdy_data files
if (ParallelDescriptor::IOProcessor() && (init_type == "real")) {
if (ParallelDescriptor::IOProcessor() && ((init_type=="real") || (init_type="metgrid"))) {

// Vector dimensions
int num_time = bdy_data_xlo.size();
Expand Down Expand Up @@ -372,7 +372,7 @@ ERF::ReadCheckpointFile ()

#ifdef ERF_USE_NETCDF
// Read bdy_data files
if (init_type == "real") {
if ((init_type=="real") || (init_type="metgrid")) {
int ioproc = ParallelDescriptor::IOProcessorNumber(); // I/O rank
int num_time;
int num_var;
Expand Down
2 changes: 1 addition & 1 deletion Source/Initialization/ERF_init_from_metgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ ERF::init_from_metgrid (int lev)
xlo_plane = xlo_plane_no_stag; xhi_plane = xhi_plane_no_stag;
ylo_plane = ylo_plane_no_stag; yhi_plane = yhi_plane_no_stag;
} else if (ivar == MetGridBdyVars::QV) {
multiply_rho = true;
multiply_rho = false;
xlo_plane = xlo_plane_no_stag; xhi_plane = xhi_plane_no_stag;
ylo_plane = ylo_plane_no_stag; yhi_plane = yhi_plane_no_stag;
} // MetGridBdyVars::QV
Expand Down

0 comments on commit 3bc1062

Please sign in to comment.