Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some unused vars in true SDC #2562

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Exec/reacting_tests/bubble_convergence/initial_model.H
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ generate_initial_model(const int nx, const Real xmin, const Real xmax,

// call the EOS to get the remainder of the thermodynamics

eos_t eos_state;
eos_state.T = T; // initial guess
eos_state.rho = rho; // initial guess
for (int n = 0; n < NumSpec; n++) {
Expand Down Expand Up @@ -183,7 +182,6 @@ generate_initial_model(const int nx, const Real xmin, const Real xmax,
Real pnew = p + (1.0_rt/6.0_rt) * h * (k1 + 2.0_rt*k2 + 2.0_rt*k3 + k4);

//! call the EOS to get the remainder of the thermodynamics
eos_t eos_state;
eos_state.T = T; // initial guess
eos_state.rho = rho; // initial guess
for (int n = 0; n < NumSpec; n++) {
Expand Down Expand Up @@ -220,7 +218,6 @@ generate_initial_model(const int nx, const Real xmin, const Real xmax,
model::profile(0).state(i, model::ipres) =
p + 0.5_rt * dx * model_params.dens_base * gravity::const_grav;

eos_t eos_state;
eos_state.rho = model::profile(0).state(i, model::idens);
eos_state.T = model_params.dens_base;
eos_state.p = model::profile(0).state(i, model::ipres);
Expand All @@ -244,7 +241,6 @@ generate_initial_model(const int nx, const Real xmin, const Real xmax,
bool converged_hse = false;

Real p_want;
eos_t eos_state;

for (int iter = 0; iter < MAX_ITER; iter++) {

Expand Down Expand Up @@ -300,7 +296,6 @@ generate_initial_model(const int nx, const Real xmin, const Real xmax,
bool converged_hse = false;

Real p_want;
eos_t eos_state;

for (int iter = 0; iter < MAX_ITER; iter++) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ void problem_initialize_state_data (int i, int j, int k,
y = problo[1] + dx[1] * (static_cast<Real>(j) + 0.5_rt);
#endif

Real z = 0.0;
#if AMREX_SPACEDIM == 3
Real z = 0.0;
z = problo[2] + dx[2] * (static_cast<Real>(k) + 0.5_rt);
#endif

Expand Down
2 changes: 0 additions & 2 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3961,7 +3961,6 @@ Castro::computeTemp(
for (MFIter mfi(Stemp); mfi.isValid(); ++mfi) {
const Box& bx = mfi.growntilebox(1);
const Box& bx0 = mfi.tilebox();
const int idx = mfi.tileIndex();

compute_lap_term(bx0, Stemp.array(mfi), Eint_lap.array(mfi), UEINT,
domain_lo, domain_hi);
Expand Down Expand Up @@ -4082,7 +4081,6 @@ Castro::computeTemp(
for (MFIter mfi(Stemp); mfi.isValid(); ++mfi) {

const Box& bx = mfi.tilebox();
const int idx = mfi.tileIndex();

tmp.resize(bx, 1);
Elixir elix_tmp = tmp.elixir();
Expand Down
1 change: 0 additions & 1 deletion Source/driver/Castro_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ Castro::initialize_advance(Real time, Real dt, int amr_iteration)

if (time_integration_method == SpectralDeferredCorrections) {

MultiFab& S_old = get_old_data(State_Type);
k_new.resize(SDC_NODES);

k_new[0].reset(new MultiFab(S_old, amrex::make_alias, 0, NUM_STATE));
Expand Down