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

remove use_raw_inputs #1721

Merged
Merged
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
13 changes: 3 additions & 10 deletions interfaces/eos.H
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,13 @@ void check_inputs (const I input, T& state)

template <typename I, typename T>
AMREX_GPU_HOST_DEVICE AMREX_INLINE
void eos (const I input, T& state, bool use_raw_inputs = false)
void eos (const I input, T& state)
{
static_assert(std::is_same_v<I, eos_input_t>, "input must be an eos_input_t");

// Input arguments

bool has_been_reset = false;
bool use_composition_routine = true;

// Local variables

Expand All @@ -411,15 +410,9 @@ void eos (const I input, T& state, bool use_raw_inputs = false)
}
#endif

if (use_raw_inputs) {
use_composition_routine = false;
}

if constexpr (has_xn<T>::value) {
if (use_composition_routine) {
// Get abar, zbar, etc.
composition(state);
}
// Get abar, zbar, etc.
composition(state);
}

// Force the inputs to be valid.
Expand Down
Loading