Skip to content

Commit

Permalink
Fix no EB production cases (#314)
Browse files Browse the repository at this point in the history
* dont compile with EB for no EB production cases

* fix normal jet case
  • Loading branch information
baperry2 authored Nov 17, 2023
1 parent 5526d7a commit ab4316a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Exec/Production/CounterFlow/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 2
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
2 changes: 1 addition & 1 deletion Exec/Production/CounterFlowSpray/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 2
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
2 changes: 1 addition & 1 deletion Exec/Production/DiffBunsen2D/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 2
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
2 changes: 1 addition & 1 deletion Exec/Production/JetInCrossflow/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 3
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
2 changes: 1 addition & 1 deletion Exec/Production/NormalJet_OpenDomain/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 3
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
5 changes: 2 additions & 3 deletions Exec/Production/NormalJet_OpenDomain/pelelmex_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
#include <AMReX_ParmParse.H>
#include <AMReX_SPACE.H>

#include <PeleLMeX_Index.H>
#include <pelelmex_prob_parm.H>
#include <PMFData.H>
#include <PelePhysics.H>
#include <mechanism.H>

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
Expand Down Expand Up @@ -115,7 +114,7 @@ bcnormal(
}
enthalpy = eta * prob_parm.H_fuel + (1.0 - eta) * prob_parm.H_ox;

GET_T_GIVEN_HY(&enthalpy, massfrac, &s_ext[TEMP], &ierr);
GET_T_GIVEN_HY(enthalpy, massfrac, s_ext[TEMP], ierr);

amrex::Real rho_cgs, P_cgs, RhoH_temp;
P_cgs = prob_parm.P_mean * 10.0;
Expand Down
4 changes: 2 additions & 2 deletions Exec/Production/NormalJet_OpenDomain/pelelmex_prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ PeleLM::readProbParm()
prob_parm->Z * Y_pure_fuel[n] + (1. - prob_parm->Z) * prob_parm->Y_ox[n];
}

CKHBMS(&prob_parm->T_fu, prob_parm->Y_fuel, &prob_parm->H_fuel);
CKHBMS(&prob_parm->T_ox, prob_parm->Y_ox, &prob_parm->H_ox);
CKHBMS(prob_parm->T_fu, prob_parm->Y_fuel, prob_parm->H_fuel);
CKHBMS(prob_parm->T_ox, prob_parm->Y_ox, prob_parm->H_ox);

auto problo = geom[0].ProbLo();
auto probhi = geom[0].ProbHi();
Expand Down
1 change: 1 addition & 0 deletions Exec/Production/NormalJet_OpenDomain/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 Down
2 changes: 1 addition & 1 deletion Exec/Production/PremBunsen2D/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 2
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down
2 changes: 1 addition & 1 deletion Exec/Production/PremBunsen3D/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIM = 3
COMP = gnu
PRECISION = DOUBLE
USE_EB = TRUE
USE_EB = FALSE
USE_HYPRE = FALSE

# Profiling
Expand Down

0 comments on commit ab4316a

Please sign in to comment.