Skip to content

Commit

Permalink
Merge pull request #307 from lanl/jdolence/downstream_variant_pte
Browse files Browse the repository at this point in the history
Allow downstream variants to use PTE solvers
  • Loading branch information
Yurlungur authored Oct 13, 2023
2 parents 70d370b + 29d2656 commit da6a73d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions singularity-eos/closure/mixed_cell_models.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ class PTESolverBase {
return Tguess;
}

PORTABLE_FORCEINLINE_FUNCTION
static Real GetPressureFromPreferred(const EOS &eos, const Real rho, const Real T,
Real sie, Real *lambda, const bool do_e_lookup) {
template <typename EOS_t>
PORTABLE_FORCEINLINE_FUNCTION static Real
GetPressureFromPreferred(const EOS_t &eos, const Real rho, const Real T, Real sie,
Real *lambda, const bool do_e_lookup) {
Real P{};
if (eos.PreferredInput() ==
(thermalqs::density | thermalqs::specific_internal_energy)) {
Expand Down
2 changes: 1 addition & 1 deletion singularity-eos/eos/eos_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Variant {
typename std::enable_if<
!std::is_same<Variant, typename std::decay<EOSChoice>::type>::value,
bool>::type = true>
EOSChoice get() {
PORTABLE_INLINE_FUNCTION EOSChoice get() {
return mpark::get<EOSChoice>(eos_);
}

Expand Down

0 comments on commit da6a73d

Please sign in to comment.