From 9b33ecc981f2006935d1ffb27692714a32bd559e Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Wed, 15 May 2024 10:34:17 -0700 Subject: [PATCH] fix incompressible build (#1622) --- Source/TimeIntegration/ERF_advance_dycore.cpp | 2 +- Source/TimeIntegration/TI_no_substep_fun.H | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/TimeIntegration/ERF_advance_dycore.cpp b/Source/TimeIntegration/ERF_advance_dycore.cpp index ae74c83d9..d4691bf38 100644 --- a/Source/TimeIntegration/ERF_advance_dycore.cpp +++ b/Source/TimeIntegration/ERF_advance_dycore.cpp @@ -272,7 +272,7 @@ void ERF::advance_dycore(int level, mri_integrator.set_post_update(post_update_fun); #ifdef ERF_USE_POISSON_SOLVE - if (solverChoice.incompressible) { + if (solverChoice.incompressible[level]) { mri_integrator.set_slow_rhs_inc(slow_rhs_fun_inc); } #endif diff --git a/Source/TimeIntegration/TI_no_substep_fun.H b/Source/TimeIntegration/TI_no_substep_fun.H index bebba6845..57b18d878 100644 --- a/Source/TimeIntegration/TI_no_substep_fun.H +++ b/Source/TimeIntegration/TI_no_substep_fun.H @@ -135,7 +135,7 @@ apply_bcs(S_sum, time_for_fp, ng_cons, ng_vel, fast_only=true, vel_and_mom_synced=false); #ifdef ERF_USE_POISSON_SOLVE - if (solverChoice.incompressible) { + if (solverChoice.incompressible[level]) { bool have_tb = (thin_xforce[0] || thin_yforce[0] || thin_zforce[0]); if (solverChoice.project_every_stage || (nrk==1)) { if (have_tb) {