Skip to content

Commit

Permalink
Debug compile. (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Jan 19, 2024
1 parent 0afd4cd commit 4852011
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 316 deletions.
7 changes: 6 additions & 1 deletion 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 Expand Up @@ -928,7 +933,7 @@ init_base_state_from_metgrid (const bool use_moisture,
p_hse_arr(i,j,k) = Pd_vec[k];
if (mask_c_arr(i,j,k)) {
r_hse_arr(i,j,k) = Rhod_vec[k];
Q_arr(i,j,k) = (use_moisture) ? Rhod_vec[k]*Q_vec[k] : 0.0;
if (use_moisture) Q_arr(i,j,k) = Rhod_vec[k]*Q_vec[k];
Theta_arr(i,j,k) = Rhod_vec[k]*Thetad_vec[k];
}
} // k
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 4852011

Please sign in to comment.