From a209eb38b6a74a47151f70819ae9ec1d86433cd1 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Sun, 31 Dec 2023 09:05:25 -0800 Subject: [PATCH] fix indexing of is_read when using wrfbdy data (#1355) --- Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp b/Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp index 0153430ab..92e534efe 100644 --- a/Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp +++ b/Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp @@ -29,13 +29,8 @@ ERF::fill_from_wrfbdy (const Vector& mfs, amrex::Real oma = 1.0 - alpha; // Flags for read vars and index mapping -#if defined(ERF_USE_MOISTURE) || defined(ERF_USE_WARM_NO_PRECIP) - Vector cons_read = {1, 1, 0, 0, 0, 1, 0}; - Vector cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0, WRFBdyVars::QV, 0}; -# else - Vector cons_read = {1, 1, 0, 0, 0}; // R, RT, RKE, RQKE, RS - Vector cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0}; // R, RT, RKE, RQKE, RS -#endif + Vector cons_read = {1, 1, 0, 0, 0, 1, 0, 0, 0}; + Vector cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0, WRFBdyVars::QV, 0, 0, 0}; Vector> is_read; is_read.push_back( cons_read );