-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:AMReX-FHD/FHDeX into main
- Loading branch information
Showing
22 changed files
with
482 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
CEXE_sources += main.cpp | ||
CEXE_headers += myfunc.H | ||
CEXE_sources += chemistry_testing_functions.cpp | ||
CEXE_headers += chemistry_testing_functions.H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef MYFUNC_H_ | ||
#define MYFUNC_H_ | ||
|
||
void main_main(const char* argv); | ||
|
||
void EMstep_chem_only(amrex::MultiFab& rho_old, amrex::MultiFab& rho_new, | ||
const amrex::Geometry geom, const amrex::Real dt); | ||
|
||
void RK3step_chem_only(amrex::MultiFab& rho_old, amrex::MultiFab& rho_new, | ||
const amrex::Geometry geom, const amrex::Real dt); | ||
|
||
void compute_chemistry_source_CLE_1(amrex::Real dt, amrex::Real dV, MultiFab& mf_in, int startComp_in, | ||
MultiFab& source, int startComp_out); | ||
|
||
void compute_chemistry_source_CLE_2(amrex::Real dt, amrex::Real dV, MultiFab& mf_in, int startComp_in, | ||
MultiFab& source, int startComp_out, MultiFab& ranchem); | ||
|
||
AMREX_GPU_HOST_DEVICE void compute_reaction_rates(GpuArray<amrex::Real,MAX_SPECIES>& n_dens, | ||
GpuArray<amrex::Real,MAX_REACTION>& a_r); | ||
|
||
AMREX_GPU_HOST_DEVICE void advance_reaction_det_cell(GpuArray<amrex::Real,MAX_SPECIES>& n_old, | ||
GpuArray<amrex::Real,MAX_SPECIES>& n_new,amrex::Real dt); | ||
|
||
AMREX_GPU_HOST_DEVICE void advance_reaction_CLE_cell(GpuArray<amrex::Real,MAX_SPECIES>& n_old, | ||
GpuArray<amrex::Real,MAX_SPECIES>& n_new, | ||
amrex::Real dt,amrex::Real dV,RandomEngine const& engine); | ||
|
||
AMREX_GPU_HOST_DEVICE void advance_reaction_SSA_cell(GpuArray<amrex::Real,MAX_SPECIES>& n_old, | ||
GpuArray<amrex::Real,MAX_SPECIES>& n_new, | ||
amrex::Real dt,amrex::Real dV,RandomEngine const& engine); | ||
#endif |
Oops, something went wrong.