-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from alwinm/main-float32
Float 32 output, HDF5 overhaul, static_grav and other minor fixes. (copy for main)
- Loading branch information
Showing
12 changed files
with
578 additions
and
570 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#-- Default hydro only build with rotated projection | ||
|
||
DFLAGS += -DCUDA | ||
DFLAGS += -DMPI_CHOLLA | ||
DFLAGS += -DPRECISION=2 | ||
DFLAGS += -DPPMC | ||
DFLAGS += -DHLLC | ||
|
||
# Integrator | ||
DFLAGS += -DSIMPLE | ||
#DFLAGS += -DVL | ||
|
||
# Apply a density and temperature floor | ||
DFLAGS += -DDENSITY_FLOOR | ||
DFLAGS += -DTEMPERATURE_FLOOR | ||
|
||
# Solve the Gas Internal Energy usisng a Dual Energy Formalism | ||
#DFLAGS += -DDE | ||
|
||
# Apply cooling on the GPU from precomputed tables | ||
#DFLAGS += -DCOOLING_GPU | ||
|
||
# Measure the Timing of the different stages | ||
#DFLAGS += -DCPU_TIME | ||
|
||
# Select output format | ||
# Can also add -DSLICES and -DPROJECTIONS | ||
OUTPUT ?= -DOUTPUT -DHDF5 | ||
DFLAGS += $(OUTPUT) | ||
|
||
DFLAGS += -DROTATED_PROJECTION |
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,32 @@ | ||
#-- Default hydro only build with static_grav | ||
|
||
DFLAGS += -DCUDA | ||
DFLAGS += -DMPI_CHOLLA | ||
DFLAGS += -DPRECISION=2 | ||
DFLAGS += -DPPMC | ||
DFLAGS += -DHLLC | ||
|
||
# Integrator | ||
DFLAGS += -DSIMPLE | ||
#DFLAGS += -DVL | ||
|
||
# Apply a density and temperature floor | ||
DFLAGS += -DDENSITY_FLOOR | ||
DFLAGS += -DTEMPERATURE_FLOOR | ||
|
||
# Solve the Gas Internal Energy usisng a Dual Energy Formalism | ||
#DFLAGS += -DDE | ||
|
||
DFLAGS += -DSTATIC_GRAV | ||
|
||
# Apply cooling on the GPU from precomputed tables | ||
#DFLAGS += -DCOOLING_GPU | ||
|
||
# Measure the Timing of the different stages | ||
#DFLAGS += -DCPU_TIME | ||
|
||
# Select output format | ||
# Can also add -DSLICES and -DPROJECTIONS | ||
OUTPUT ?= -DOUTPUT -DHDF5 | ||
DFLAGS += $(OUTPUT) | ||
|
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,59 @@ | ||
# | ||
# Parameter File for sound wave test with float32 output | ||
# | ||
|
||
################################################ | ||
# number of grid cells in the x dimension | ||
nx=256 | ||
# number of grid cells in the y dimension | ||
ny=256 | ||
# number of grid cells in the z dimension | ||
nz=256 | ||
# final output time | ||
tout=0.05 | ||
# time interval for output | ||
outstep=0.05 | ||
# name of initial conditions | ||
init=Sound_Wave | ||
# domain properties | ||
xmin=0.0 | ||
ymin=0.0 | ||
zmin=0.0 | ||
xlen=4.0 | ||
ylen=4.0 | ||
zlen=4.0 | ||
# type of boundary conditions | ||
xl_bcnd=1 | ||
xu_bcnd=1 | ||
yl_bcnd=1 | ||
yu_bcnd=1 | ||
zl_bcnd=1 | ||
zu_bcnd=1 | ||
# path to output directory | ||
outdir=./ | ||
|
||
# Enable float32 output | ||
# Enable float32 density field | ||
n_out_float32=1 | ||
out_float32_density=1 | ||
|
||
# Uncomment this to enable momentum_x | ||
# out_float32_momentum_x=1 | ||
|
||
################################################# | ||
# Parameters for linear wave problems | ||
# initial density | ||
rho=1.0 | ||
# velocity in the x direction | ||
vx=0 | ||
# velocity in the y direction | ||
vy=0 | ||
# velocity in the z direction | ||
vz=0 | ||
# initial pressure | ||
P=0.6 | ||
# amplitude of perturbing oscillations | ||
A=1e-4 | ||
# value of gamma | ||
gamma=1.666666666666667 | ||
|
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 was deleted.
Oops, something went wrong.
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.