Skip to content

Commit

Permalink
GABLS1 should be dry
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Jan 4, 2024
1 parent 3af272f commit b08576d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Exec/RegTests/GABLS1/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Problem::init_custom_pert(
const SolverChoice& sc)
{
const bool use_moisture = (sc.moisture_type != MoistureType::None);
if (use_moisture) {
amrex::Print() << "Note: GABLS1 is a dry case" << std::endl;
}

if (state.nComp() > RhoQKE_comp) {
amrex::Print() << "Initializing QKE" << std::endl;
Expand Down Expand Up @@ -121,8 +124,10 @@ Problem::init_custom_pert(
}
}

state(i, j, k, RhoQ1_comp) = 0.0;
state(i, j, k, RhoQ2_comp) = 0.0;
if (use_moisture) {
state(i, j, k, RhoQ1_comp) = 0.0;
state(i, j, k, RhoQ2_comp) = 0.0;
}
});

// Set the x-velocity
Expand Down

0 comments on commit b08576d

Please sign in to comment.