Skip to content

Commit

Permalink
fix call to init_bcs (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Oct 5, 2024
1 parent d941635 commit a8d7cdc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/ERF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ ERF::init_only (int lev, Real time)
// Map the words in the inputs file to BC types, then translate
// those types into what they mean for each variable
// This must be called before initHSE (where the base state is initialized)
if (lev == 0) {
if (lev == 0 && init_type != "ideal") {
init_bcs();
}

Expand Down Expand Up @@ -1310,7 +1310,12 @@ ERF::init_only (int lev, Real time)
// The base state is initialized from WRF wrfinput data, output by
// ideal.exe or real.exe
init_from_wrfinput(lev);
if (init_type == "ideal") initHSE();

// The physbc's need the terrain but are needed for initHSE
if (init_type == "ideal") {
make_physbcs(lev);
initHSE(lev);
}

} else if (init_type == "metgrid") {
// The base state is initialized from data output by WPS metgrid;
Expand Down

0 comments on commit a8d7cdc

Please sign in to comment.