Skip to content

Commit

Permalink
Merge pull request #143 from AMReX-FHD/reservoir_compress
Browse files Browse the repository at this point in the history
Reservoirs in the Compressible Staggered FHD
  • Loading branch information
isriva authored Sep 20, 2023
2 parents 9528ecc + 3b40fb7 commit c39702f
Show file tree
Hide file tree
Showing 11 changed files with 2,098 additions and 143 deletions.
2 changes: 1 addition & 1 deletion exec/compressible_stag/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AMREX_HOME ?= ../../../amrex/
DEBUG = FALSE
USE_MPI = TRUE
USE_OMP = FALSE
USE_CUDA = TRUE
USE_CUDA = FALSE
USE_HIP = FALSE
COMP = gnu
DIM = 3
Expand Down
7 changes: 7 additions & 0 deletions src_compressible/compressible_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ AMREX_GPU_MANAGED int compressible::do_1D;
AMREX_GPU_MANAGED int compressible::do_2D;
AMREX_GPU_MANAGED int compressible::all_correl;
AMREX_GPU_MANAGED int compressible::nspec_surfcov = 0;
AMREX_GPU_MANAGED bool compressible::do_reservoir = false;

void InitializeCompressibleNamespace()
{
Expand Down Expand Up @@ -63,6 +64,12 @@ void InitializeCompressibleNamespace()
pp.query("all_correl",all_correl);


// do reservoir?
if ((bc_mass_lo[0] == 4) or (bc_mass_lo[1] == 4) or (bc_mass_lo[2] == 4) or
(bc_mass_hi[0] == 4) or (bc_mass_hi[1] == 4) or (bc_mass_hi[2] == 4)) {
do_reservoir = true;
}

return;
}

Expand Down
1 change: 1 addition & 0 deletions src_compressible/compressible_namespace.H
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace compressible {
extern AMREX_GPU_MANAGED int do_2D;
extern AMREX_GPU_MANAGED int all_correl;
extern AMREX_GPU_MANAGED int nspec_surfcov;
extern AMREX_GPU_MANAGED bool do_reservoir;

}

2 changes: 2 additions & 0 deletions src_compressible_stag/Make.package
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CEXE_sources += timeStepStag.cpp
CEXE_sources += conservedPrimitiveConversionsStag.cpp
CEXE_sources += boundaryStag.cpp
CEXE_sources += membraneStag.cpp
CEXE_sources += reservoirStag.cpp
CEXE_sources += writePlotFileStag.cpp
CEXE_sources += Checkpoint.cpp
CEXE_sources += TurbForcingComp.cpp
Expand All @@ -14,5 +15,6 @@ CEXE_headers += compressible_functions_stag.H
CEXE_sources += compressible_functions.cpp
CEXE_headers += compressible_functions.H
CEXE_headers += compressible_namespace.H
CEXE_headers += reservoirStag_K.H
CEXE_headers += TurbForcingComp.H

Loading

0 comments on commit c39702f

Please sign in to comment.