From 38f2fb26c54559e233de9e6987ecaaf0fd853d80 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Fri, 25 Oct 2024 09:05:25 -0700 Subject: [PATCH] remove unused and fix ncomp --- Source/ERF_make_new_level.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/ERF_make_new_level.cpp b/Source/ERF_make_new_level.cpp index 94cac0ee9..f248edf5b 100644 --- a/Source/ERF_make_new_level.cpp +++ b/Source/ERF_make_new_level.cpp @@ -346,9 +346,6 @@ ERF::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMapp // from previous (pre-regrid) base_state array // ******************************************************************************************** if (lev > 0) { - // Interp all three components: rho, p, pi - int icomp = 0; int bccomp = 0; int ncomp = 3; - Interpolater* mapper = &cell_cons_interp; Vector fmf = {&base_state[lev ], &base_state[lev ]}; @@ -364,7 +361,7 @@ ERF::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMapp BCVars::base_bc); // Impose bc's outside the domain - (*physbcs_base[lev])(temp_base_state,icomp,ncomp,base_state[lev].nGrowVect()); + (*physbcs_base[lev])(temp_base_state,0,temp_base_state.nComp(),base_state[lev].nGrowVect()); std::swap(temp_base_state, base_state[lev]); }