Skip to content

Commit

Permalink
correct parsing logic for ABLMeanBoussinesq (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn authored Sep 16, 2024
1 parent 8cfe7ad commit e26eb80
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ ABLMeanBoussinesq::ABLMeanBoussinesq(const CFDSim& sim) : m_mesh(sim.mesh())
amrex::ParmParse pp_incflo("incflo");
pp_incflo.queryarr("gravity", m_gravity);

if (pp_boussinesq_buoyancy.contains("read_temperature_profile")) {
bool read_temp_prof = false;
pp_boussinesq_buoyancy.query("read_temperature_profile", read_temp_prof);

if ((!pp_boussinesq_buoyancy.contains("read_temperature_profile") &&
pp_boussinesq_buoyancy.contains("tprofile_filename")) ||
read_temp_prof) {

m_const_profile = true;

Expand Down

0 comments on commit e26eb80

Please sign in to comment.