Skip to content

Commit

Permalink
feat: remove eos from Ceilings
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Mar 20, 2024
1 parent 21a1753 commit 1162e41
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/fixup/fixup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,17 @@ class Ceilings {
KOKKOS_INLINE_FUNCTION
void GetCeilings(const Real x1, const Real x2, const Real x3, Real &gmax,
Real &smax) const {
if (!eos_bnds_set_) {
PARTHENON_FAIL("EOS bounds not set in ceilings.");
}

switch (ceiling_flag_) {
case 1:
gmax = g0_;
smax = std::min(s0_, sie_max_eos_);
smax = s0_;
break;
default:
PARTHENON_FAIL("No valid ceiling set.");
}
}

void SetEOSBnds(StateDescriptor *eos_pkg) {
if (!eos_bnds_set_) {
sie_max_eos_ = eos_pkg->Param<Real>("sie_max");
eos_bnds_set_ = true;
}
}

private:
Real g0_, s0_, sie_max_eos_;
const int ceiling_flag_;
Expand Down Expand Up @@ -301,7 +292,6 @@ class Bounds {
template <class... Args>
KOKKOS_INLINE_FUNCTION void SetEOSBnds(Args &&...args) {
floors_.SetEOSBnds(std::forward<Args>(args)...);
ceilings_.SetEOSBnds(std::forward<Args>(args)...);
}

template <class... Args>
Expand Down

0 comments on commit 1162e41

Please sign in to comment.