Skip to content

Commit

Permalink
Merge branch 'development' into LSM
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Jan 19, 2024
2 parents 9ffc6d7 + 4852011 commit 11029a4
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 316 deletions.
5 changes: 5 additions & 0 deletions Source/Initialization/ERF_init_from_metgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ ERF::init_from_metgrid (int lev)
}
}

// NOTE: We must guarantee one halo cell in the bdy file.
// Otherwise, we make the total width match the set width.
if (metgrid_bdy_width-1 <= metgrid_bdy_set_width) metgrid_bdy_width = metgrid_bdy_set_width;
amrex::Print() << "Running with specification width: " << metgrid_bdy_set_width
<< " and relaxation width: " << metgrid_bdy_width - metgrid_bdy_set_width << std::endl;

// Set up boxes for lateral boundary arrays.
bdy_data_xlo.resize(ntimes);
Expand Down
3 changes: 1 addition & 2 deletions Source/TimeIntegration/TI_slow_rhs_fun.H
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,9 @@
} else if (init_type == "metgrid") {
width = metgrid_bdy_width;
set_width = metgrid_bdy_set_width;
if (width == set_width) width += 1;
}
wrfbdy_compute_interior_ghost_rhs(init_type, bdy_time_interval, start_bdy_time, new_stage_time, slow_dt,
width-1, set_width, fine_geom,
width, set_width, fine_geom,
S_rhs, S_data, bdy_data_xlo, bdy_data_xhi,
bdy_data_ylo, bdy_data_yhi);
}
Expand Down
Loading

0 comments on commit 11029a4

Please sign in to comment.