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

sync up react_state's return type #2570

Merged
merged 10 commits into from
Sep 24, 2023
10 changes: 5 additions & 5 deletions Source/reactions/Castro_react.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
/// @param time current time
/// @param dt reaction timestep
///
bool react_state(amrex::MultiFab& state,
amrex::MultiFab& reactions,
amrex::Real time,
amrex::Real dt,
const int strang_half);
int react_state(amrex::MultiFab& state,
amrex::MultiFab& reactions,
amrex::Real time,
amrex::Real dt,
const int strang_half);

///
/// Simplified SDC version of react_state. Reacts the current state through a single timestep.
Expand Down
6 changes: 3 additions & 3 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Castro::do_old_reactions (Real time, Real dt)
advance_status status {};

#ifndef SIMPLIFIED_SDC
bool burn_success = true;
int burn_success{1};
maxpkatz marked this conversation as resolved.
Show resolved Hide resolved

MultiFab& R_old = get_old_data(Reactions_Type);
MultiFab& R_new = get_new_data(Reactions_Type);
Expand Down Expand Up @@ -57,7 +57,7 @@ Castro::do_new_reactions (Real time, Real dt)

advance_status status {};

bool burn_success = true;
int burn_success{1};

MultiFab& R_new = get_new_data(Reactions_Type);
MultiFab& S_new = get_new_data(State_Type);
Expand Down Expand Up @@ -129,7 +129,7 @@ Castro::do_new_reactions (Real time, Real dt)

// Strang version

bool
int
Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int strang_half)
{

Expand Down
Loading