Skip to content

Commit

Permalink
fix indexing of is_read when using wrfbdy data (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Dec 31, 2023
1 parent 110e469 commit a209eb3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Source/BoundaryConditions/BoundaryConditions_wrfbdy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ ERF::fill_from_wrfbdy (const Vector<MultiFab*>& 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<int> cons_read = {1, 1, 0, 0, 0, 1, 0};
Vector<int> cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0, WRFBdyVars::QV, 0};
# else
Vector<int> cons_read = {1, 1, 0, 0, 0}; // R, RT, RKE, RQKE, RS
Vector<int> cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0}; // R, RT, RKE, RQKE, RS
#endif
Vector<int> cons_read = {1, 1, 0, 0, 0, 1, 0, 0, 0};
Vector<int> cons_map = {WRFBdyVars::R, WRFBdyVars::T, 0, 0, 0, WRFBdyVars::QV, 0, 0, 0};

Vector<Vector<int>> is_read;
is_read.push_back( cons_read );
Expand Down

0 comments on commit a209eb3

Please sign in to comment.