Skip to content

Commit

Permalink
eosparm in BC stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 17, 2024
1 parent 0b22bbf commit a50c552
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exec/RegTests/FlameSheet/pelelmex_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pelelmex_initdata(

constexpr amrex::Real Pi = 3.14159265358979323846264338327950288;

auto eos = pele::physics::PhysicsType::eos();
auto eos = pele::physics::PhysicsType::eos(prob_parm.eosparm);
amrex::GpuArray<amrex::Real, NUM_SPECIES + 4> pmf_vals = {0.0};
amrex::Real molefrac[NUM_SPECIES] = {0.0};
amrex::Real massfrac[NUM_SPECIES] = {0.0};
Expand Down Expand Up @@ -140,7 +140,7 @@ bcnormal(
amrex::Real molefrac[NUM_SPECIES] = {0.0};
amrex::Real massfrac[NUM_SPECIES] = {0.0};

auto eos = pele::physics::PhysicsType::eos();
auto eos = pele::physics::PhysicsType::eos(prob_parm.eosparm);
if (sgn == 1) {
pele::physics::PMF::pmf(pmf_data, prob_lo[idir], prob_lo[idir], pmf_vals);

Expand Down
1 change: 1 addition & 0 deletions Exec/RegTests/FlameSheet/pelelmex_prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ PeleLM::readProbParm()
pp.query("pertmag", PeleLM::prob_parm->pertmag);
pp.query("pertlength", PeleLM::prob_parm->pertlength);

PeleLM::prob_parm->eosparm = PeleLM::eos_parms.device_parm();
PeleLM::pmf_data.initialize();
}
3 changes: 3 additions & 0 deletions Exec/RegTests/FlameSheet/pelelmex_prob_parm.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
#include <PelePhysics.H>

using namespace amrex::literals;

Expand All @@ -13,5 +14,7 @@ struct ProbParm
amrex::Real pertmag = 0.0004_rt;
amrex::Real pertlength = 0.008_rt;
int meanFlowDir = 1;
pele::physics::eos::EosParm<pele::physics::PhysicsType::eos_type> const*
eosparm;
};
#endif

0 comments on commit a50c552

Please sign in to comment.