-
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
57 changed files
with
3,295 additions
and
633 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
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
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
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,24 @@ | ||
#!/usr/bin/bash | ||
|
||
## load necessary modules | ||
module load cmake/3.23.2 | ||
module load craype-accel-amd-gfx90a | ||
module load rocm/5.2.0 # waiting for 5.6 for next bump | ||
module load cray-mpich | ||
module load cce/15.0.0 # must be loaded after rocm | ||
|
||
# GPU-aware MPI | ||
export MPICH_GPU_SUPPORT_ENABLED=1 | ||
|
||
# optimize CUDA compilation for MI250X | ||
export AMREX_AMD_ARCH=gfx90a | ||
|
||
# compiler environment hints | ||
export CC=$(which hipcc) | ||
export CXX=$(which hipcc) | ||
export FC=$(which ftn) | ||
export CFLAGS="-I${ROCM_PATH}/include" | ||
export CXXFLAGS="-I${ROCM_PATH}/include -Wno-pass-failed" | ||
export LDFLAGS="-L${ROCM_PATH}/lib -lamdhip64 ${PE_MPICH_GTL_DIR_amd_gfx90a} -lmpi_gtl_hsa" | ||
|
||
make -j18 USE_CUDA=FALSE USE_HIP=TRUE DO_TURB=TRUE |
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,97 @@ | ||
# Problem specification | ||
# mean free path (Ar): lambda = 6.26e-6 cm | ||
# dx = dy = dz = 2*lambda = 1.252e-5 | ||
prob_lo = 0.0 0.0 0.0 # physical lo coordinate | ||
prob_hi = 0.080128 0.080128 0.080128 # physical hi coordinate | ||
|
||
# Number of ghost cells, conserved, and primitive variables | ||
# --------------------- | ||
ngc = 2 2 2 | ||
nspecies = 2 | ||
nvars = 7 | ||
nprimvars = 10 | ||
|
||
# number of cells in domain | ||
n_cells = 128 128 128 | ||
# max number of cells in a box | ||
max_grid_size = 128 128 128 | ||
|
||
# Time-step control | ||
fixed_dt = 5e-9 | ||
stoch_stress_form = 1 | ||
|
||
# Controls for number of steps between actions | ||
max_step = 1000000 | ||
plot_int = 5000 | ||
|
||
# Multispecies toggle | ||
# if algorithm_type = 1, single component | ||
# if algorithm_type = 2, multispecies | ||
algorithm_type = 2 | ||
|
||
# Viscous tensor form | ||
# if visc_type = 1, L = not-symmetric (bulk viscosity = 0) | ||
# if visc_type = 2, L = symmetric (bulk viscosity = 0) | ||
# if visc_type = 3, L = symmetric + bulk viscosity | ||
visc_type = 2 | ||
|
||
# Advection method | ||
# if advection_type = 1, interpolate primitive quantities | ||
# if advection_type = 2, interpolate conserved quantities | ||
advection_type = 1 | ||
|
||
# Problem specification | ||
# if prob_type = 1, constant species concentration | ||
# if prob_type = 2, Rayleigh-Taylor instability | ||
# if prob_type = 3, diffusion barrier | ||
prob_type = 4 | ||
|
||
# Initial parameters | ||
k_B = 1.38064852e-16 # [units: cm2*g*s-2*K-1] | ||
Runiv = 8.314462175e7 | ||
T_init = 273 | ||
rho0 = 0.0017775409151219938 | ||
rhobar = 0.5 0.5 | ||
mach0 = 0.5 | ||
turbForcing = 1 | ||
|
||
struct_fact_int = -10 | ||
n_steps_skip = 0 | ||
|
||
# Boundary conditions: | ||
# NOTE: setting bc_vel to periodic sets all the other bc's to periodic) | ||
# bc_vel: -1 = periodic | ||
# 1 = slip | ||
# 2 = no-slip | ||
# bc_mass: -1 = periodic | ||
# 1 = wall | ||
# 2 = reservoir (set bc_Yk or bc_Xk in compressible namelist) | ||
# bc_therm: -1 = periodic | ||
# 1 = adiabatic | ||
# 2 = isothermal (set with t_lo/hi in common namelist) | ||
bc_vel_lo = -1 -1 -1 | ||
bc_vel_hi = -1 -1 -1 | ||
bc_mass_lo = -1 -1 -1 | ||
bc_mass_hi = -1 -1 -1 | ||
bc_therm_lo = -1 -1 -1 | ||
bc_therm_hi = -1 -1 -1 | ||
|
||
# Temperature if thermal BC specified | ||
t_lo = 273 273 273 | ||
t_hi = 273 273 273 | ||
|
||
#Kinetic species info | ||
#-------------- | ||
molmass = 39.9480 39.9480 | ||
diameter = 3.66e-8 3.66e-8 | ||
|
||
# Enter negative dof to use hcv & hcp values | ||
dof = 3 3 | ||
hcv = -1 -1 | ||
hcp = -1 -1 | ||
|
||
# write out means and variances to plotfile | ||
transport_type = 1 | ||
plot_means = 0 | ||
plot_vars = 0 | ||
plot_covars = 0 |
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
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
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
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
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
Oops, something went wrong.