Skip to content

Commit

Permalink
Merge branch 'development' into pr-2435
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 27, 2023
2 parents d078ee0 + bc5fe8d commit 54e7fdd
Show file tree
Hide file tree
Showing 23 changed files with 236 additions and 1,558 deletions.
5 changes: 4 additions & 1 deletion Exec/reacting_tests/nse_test/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ void problem_initialize_state_data (int i, int j, int k,
Real abar;
Real dq;
Real dyedt;
Real dabardt;
Real dbeadt;
Real e_nu;

nse_interp(T, problem::rho0, ye, abar, dq, dyedt, burn_state.xn);
nse_interp(T, problem::rho0, ye, abar, dq, dyedt, dabardt, dbeadt, e_nu, burn_state.xn);
#elif defined(NSE_NET)
Real eps = 1.e-10_rt;
bool input_ye_is_valid = true;
Expand Down
12 changes: 9 additions & 3 deletions Exec/science/Detonation/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void problem_initialize ()
problem::in14 = network_spec_index("nitrogen-14");
problem::io16 = network_spec_index("oxygen-16");

if (problem::ihe4 < 0 || problem::ic12 < 0 || problem::in14 < 0 || problem::io16 < 0) {
if (problem::ihe4 < 0 || problem::ic12 < 0 || problem::io16 < 0) {
amrex::Error("ERROR: species indices not found");
}

Expand Down Expand Up @@ -51,9 +51,15 @@ void problem_initialize ()
}

problem::xn[problem::ic12] = amrex::max(problem::cfrac, problem::smallx);
problem::xn[problem::in14] = amrex::max(problem::nfrac, problem::smallx);
problem::xn[problem::io16] = amrex::max(problem::ofrac, problem::smallx);
problem::xn[problem::ihe4] = 1.0_rt - problem::cfrac - problem::nfrac - problem::ofrac - (NumSpec - 3) * problem::smallx;

if (problem::in14 >= 0) {
problem::xn[problem::in14] = amrex::max(problem::nfrac, problem::smallx);
problem::xn[problem::ihe4] = 1.0_rt - problem::cfrac - problem::nfrac - problem::ofrac - (NumSpec - 3) * problem::smallx;
}
else {
problem::xn[problem::ihe4] = 1.0_rt - problem::cfrac - problem::ofrac - (NumSpec - 2) * problem::smallx;
}

// Set the ambient material

Expand Down
5 changes: 4 additions & 1 deletion Exec/science/massive_star/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,13 @@ void problem_initialize_state_data (int i, int j, int k,
Real abar;
Real dq;
Real dyedt;
Real dabardt;
Real dbeadt;
Real e_nu;
Real xn[NumSpec];

nse_interp(state(i,j,k,UTEMP), state(i,j,k,URHO),
state(i,j,k,UFX+AuxZero::iye), abar, dq, dyedt, xn);
state(i,j,k,UFX+AuxZero::iye), abar, dq, dyedt, dabardt, dbeadt, e_nu, xn);

state(i,j,k,UFX+AuxZero::iabar) = abar;
state(i,j,k,UFX+AuxZero::ibea) = dq;
Expand Down
1 change: 0 additions & 1 deletion Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#ifdef RADIATION
#include <Radiation.H>
#include <RAD_F.H>
#endif

#ifdef AMREX_PARTICLES
Expand Down
1 change: 0 additions & 1 deletion Source/hydro/Castro_ctu_rad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "Radiation.H"
#include "RadHydro.H"
#include "RAD_F.H"
#include "fluxlimiter.H"

using namespace amrex;
Expand Down
1 change: 0 additions & 1 deletion Source/radiation/MGFLD.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <Radiation.H>
#include <RAD_F.H>
#include <rad_util.H>
#include <filter.H>
#include <blackbody.H>
Expand Down
3 changes: 0 additions & 3 deletions Source/radiation/MGFLDRadSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#include <Radiation.H>
#include <RadSolve.H>


#include <RAD_F.H>

#include <iostream>
#include <iomanip>

Expand Down
2 changes: 0 additions & 2 deletions Source/radiation/MGRadBndry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <omp.h>
#endif

#include <RAD_F.H>

using namespace amrex;

int MGRadBndry::ngroups = 1;
Expand Down
2 changes: 0 additions & 2 deletions Source/radiation/Make.package
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ CEXE_headers += HABEC.H
CEXE_headers += filter.H
CEXE_headers += filt_prim.H

FEXE_headers += RAD_F.H

CEXE_sources += trace_ppm_rad.cpp

CEXE_headers += fluxlimiter.H
Expand Down
85 changes: 0 additions & 85 deletions Source/radiation/RAD_F.H

This file was deleted.

2 changes: 0 additions & 2 deletions Source/radiation/RadBndry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <omp.h>
#endif

#include <RAD_F.H>

using namespace amrex;

int RadBndry::first = 1;
Expand Down
2 changes: 0 additions & 2 deletions Source/radiation/RadMultiGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#include <Radiation.H>

#include <RAD_F.H>

#include <AMReX_ParmParse.H>

#include <iostream>
Expand Down
2 changes: 0 additions & 2 deletions Source/radiation/RadPlotvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include <Radiation.H>
#include <fluxlimiter.H>

#include <RAD_F.H>

using namespace amrex;

void Radiation::save_lambda_in_plotvar(int level, const Array<MultiFab,AMREX_SPACEDIM>& lambda)
Expand Down
1 change: 0 additions & 1 deletion Source/radiation/RadSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <Radiation.H> // for access to static physical constants only
#include <rad_util.H>
#include <problem_rad_source.H>
#include <RAD_F.H>

#include <iostream>

Expand Down
1 change: 0 additions & 1 deletion Source/radiation/Radiation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <rad_util.H>
#include <filt_prim.H>

#include <RAD_F.H>
#include <AMReX_PROB_AMR_F.H>

#include <opacity.H>
Expand Down
3 changes: 0 additions & 3 deletions Source/radiation/SGRadSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#include <Radiation.H>
#include <RadSolve.H>


#include <RAD_F.H>

#include <iostream>

#ifdef _OPENMP
Expand Down
4 changes: 0 additions & 4 deletions Source/radiation/_interpbndry/Make.package
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ CA_BASE=EXE
C$(CA_BASE)_sources += RadInterpBndryData.cpp RadBndryData.cpp

C$(CA_BASE)_headers += RadInterpBndryData.H RadBndryData.H RadBoundCond.H

ca_F90$(CA_BASE)_sources += RadInterpBndryData_$(DIM)d.F90

ca_F$(CA_BASE)_headers += RADINTERPBNDRYDATA_F.H
Loading

0 comments on commit 54e7fdd

Please sign in to comment.