Skip to content

Commit

Permalink
remove unusued use_fluxes option (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Nov 28, 2023
1 parent 015cef8 commit 9414fc8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/ERF_make_new_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,17 +468,11 @@ ERF::initialize_integrator (int lev, MultiFab& cons_mf, MultiFab& vel_mf)
const DistributionMapping& dm(cons_mf.DistributionMap());

// Initialize the integrator memory
int use_fluxes = (finest_level > 0);
amrex::Vector<amrex::MultiFab> int_state; // integration state data structure example
int_state.push_back(MultiFab(cons_mf, amrex::make_alias, 0, Cons::NumVars)); // cons
int_state.push_back(MultiFab(convert(ba,IntVect(1,0,0)), dm, 1, vel_mf.nGrow())); // xmom
int_state.push_back(MultiFab(convert(ba,IntVect(0,1,0)), dm, 1, vel_mf.nGrow())); // ymom
int_state.push_back(MultiFab(convert(ba,IntVect(0,0,1)), dm, 1, vel_mf.nGrow())); // zmom
if (use_fluxes) {
int_state.push_back(MultiFab(convert(ba,IntVect(1,0,0)), dm, Cons::NumVars, 1)); // x-fluxes
int_state.push_back(MultiFab(convert(ba,IntVect(0,1,0)), dm, Cons::NumVars, 1)); // y-fluxes
int_state.push_back(MultiFab(convert(ba,IntVect(0,0,1)), dm, Cons::NumVars, 1)); // z-fluxes
}

mri_integrator_mem[lev] = std::make_unique<MRISplitIntegrator<amrex::Vector<amrex::MultiFab> > >(int_state);
mri_integrator_mem[lev]->setNoSubstepping(solverChoice.no_substepping);
Expand Down

0 comments on commit 9414fc8

Please sign in to comment.