Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
zarija committed Oct 6, 2017
2 parents 71556d7 + 4ee8f07 commit df3201f
Show file tree
Hide file tree
Showing 162 changed files with 14,350 additions and 1,750 deletions.
2 changes: 1 addition & 1 deletion Exec/DrivenTurbulence/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../..
Expand Down
9 changes: 9 additions & 0 deletions Exec/DrivenTurbulence/heat_cool_stubs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ subroutine integrate_state(lo, hi, &
dx, time, a, half_dt)

end subroutine integrate_state


! unused VODE stubs if we are not doing heating/cooling
module vode_aux_module
use amrex_fort_module, only : rt => amrex_real
implicit none

real(rt) :: z_vode
end module vode_aux_module
1 change: 0 additions & 1 deletion Exec/DrivenTurbulence/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ amr.derive_plot_vars = magvort divu MachNumber
amr.probin_file = probin

# DIAGNOSTICS & VERBOSITY
nyx.show_timings = 0 # show timings
nyx.sum_interval = 1 # timesteps between computing mass
nyx.v = 2 # verbosity in Castro.cpp
amr.v = 2 # verbosity in Amr.cpp
Expand Down
1 change: 0 additions & 1 deletion Exec/DrivenTurbulence/inputs.regtest
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ amr.derive_plot_vars = forcex forcey forcez magvort MachNumber
amr.probin_file = probin

# DIAGNOSTICS & VERBOSITY
nyx.show_timings = 0 # show timings
nyx.sum_interval = 1 # timesteps between computing mass
nyx.v = 2 # verbosity in Castro.cpp
amr.v = 2 # verbosity in Amr.cpp
Expand Down
2 changes: 1 addition & 1 deletion Exec/GravityTests/MacLaurin/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..
Expand Down
3 changes: 1 addition & 2 deletions Exec/HydroTests/DoubleRarefaction/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..
Expand All @@ -11,7 +11,6 @@ USE_MPI = FALSE
USE_OMP = FALSE

PRECISION = DOUBLE
DEBUG = TRUE
DEBUG = FALSE

# physics
Expand Down
5 changes: 2 additions & 3 deletions Exec/HydroTests/Sedov/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..

# compilation options
COMP = gcc
COMP = intel #gcc

USE_MPI = FALSE
USE_OMP = FALSE

PRECISION = DOUBLE
DEBUG = TRUE
DEBUG = FALSE

# physics
Expand Down
3 changes: 1 addition & 2 deletions Exec/HydroTests/Sod/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..
Expand All @@ -11,7 +11,6 @@ USE_MPI = FALSE
USE_OMP = FALSE

PRECISION = DOUBLE
DEBUG = TRUE
DEBUG = FALSE

# physics
Expand Down
3 changes: 1 addition & 2 deletions Exec/HydroTests/StrongShockTube/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..
Expand All @@ -11,7 +11,6 @@ USE_MPI = FALSE
USE_OMP = FALSE

PRECISION = DOUBLE
DEBUG = TRUE
DEBUG = FALSE

# physics
Expand Down
2 changes: 1 addition & 1 deletion Exec/HydroTests/TurbForce/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
AMREX_HOME ?= ../../../../amrex

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../../..
Expand Down
4 changes: 2 additions & 2 deletions Exec/HydroTests/TurbForce/Nyx_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Nyx::hydro_setup()
ppm_flatten_before_integrals,
use_colglaz, use_flattening, corner_coupling, version_2,
use_const_species, gamma, normalize_species,
heat_cool_type, ParallelDescriptor::Communicator());
heat_cool_type);

if (use_const_species == 1)
fort_set_eos_params(h_species, he_species);
Expand Down Expand Up @@ -664,7 +664,7 @@ Nyx::no_hydro_setup()
ppm_flatten_before_integrals,
use_colglaz, use_flattening, corner_coupling, version_2,
use_const_species, gamma, normalize_species,
heat_cool_type, ParallelDescriptor::Communicator());
heat_cool_type);

int coord_type = Geometry::Coord();
fort_set_problem_params(dm, phys_bc.lo(), phys_bc.hi(), Outflow, Symmetry, coord_type);
Expand Down
Binary file removed Exec/LyA/32.nyx
Binary file not shown.
Binary file added Exec/LyA/64sssss_20mpc.nyx
Binary file not shown.
33 changes: 9 additions & 24 deletions Exec/LyA/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,50 +1,35 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= /project/projectdirs/nyx/src/amrex
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= /global/homes/f/friesen/hpgmg/finite-volume
HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= ../../../sundials/sundials-intel/lib

# TOP defines the directory in which we will find Source, Exec, etc
TOP = ../..

# compilation options
COMP = gcc
COMP = intel # gnu
USE_MPI = TRUE
USE_OMP = TRUE

PROFILE = FALSE
PROFILE = TRUE
TRACE_PROFILE = FALSE
COMM_PROFILE = FALSE

PRECISION = DOUBLE
USE_SINGLE_PRECISION_PARTICLES = TRUE
DEBUG = FALSE

GIMLET = FALSE
REEBER = FALSE

GIMLET_DIR ?= /home/vince/Development/gimlet
# Gimlet needs FFTW MPI.
FFTW_INC ?= /usr/include
FFTW_DIR ?= /usr/lib/x86_64-linux-gnu

REEBER_HOME ?= /project/projectdirs/nyx/ghweber/reeber2
# Reeber needs Boost (both headers and libraries) and diy2.
BOOST_INCLUDE_DIR ?= /project/projectdirs/nyx/ghweber/boost-1.61.0-noarch/include
DIY_INCLUDE_DIR ?= /project/projectdirs/nyx/ghweber/diy/include

USE_HPGMG = FALSE
HPGMG_FCYCLES = FALSE
HPGMG_POST_F_CYCLE_TYPE = V
HPGMG_HELMHOLTZ = FALSE
HPGMG_STENCIL_VARIABLE_COEFFICIENT = FALSE
HPGMG_USE_SUBCOMM = TRUE
HPGMG_BOTTOM_SOLVER= BICGSTAB
HPGMG_SMOOTHER = GSRB
USE_HPGMG = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
USE_HEATCOOL = TRUE

USE_AGN = FALSE
USE_CVODE = FALSE

Bpack := ./Make.package
Expand Down
3 changes: 0 additions & 3 deletions Exec/LyA/Make.package
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
f90EXE_sources += Prob_${DIM}d.f90
f90EXE_sources += probdata.f90
ifeq ($(USE_CVODE), TRUE)
f90EXE_sources += fcvode_extras.f90
endif
21 changes: 17 additions & 4 deletions Exec/LyA/Prob_3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ subroutine fort_initdata(level,time,lo,hi, &
bind(C, name="fort_initdata")

use amrex_fort_module, only : rt => amrex_real
use amrex_parmparse_module
use probdata_module
use atomic_rates_module, only : XHYDROGEN
use meth_params_module, only : URHO, UMX, UMZ, UEDEN, UEINT, UFS, &
small_dens, TEMP_COMP, NE_COMP
small_dens, TEMP_COMP, NE_COMP, ZHI_COMP

implicit none

Expand All @@ -81,6 +82,13 @@ subroutine fort_initdata(level,time,lo,hi, &
real(rt) diag_eos(d_l1:d_h1,d_l2:d_h2,d_l3:d_h3,nd)

integer i,j,k
real(rt) z_in

type(amrex_parmparse) :: pp

call amrex_parmparse_build(pp, "nyx")
call pp%query("initial_z", z_in)
call amrex_parmparse_destroy(pp)

! This is the case where we have compiled with states defined
! but they have only one component each so we fill them this way.
Expand All @@ -90,7 +98,7 @@ subroutine fort_initdata(level,time,lo,hi, &
diag_eos(:,:,:,1) = 0.0d0

! This is the regular case with NO_HYDRO = FALSE
else if (ns.gt.1 .and. nd.eq.2) then
else if (ns.gt.1 .and. nd.ge.2) then

do k = lo(3), hi(3)
do j = lo(2), hi(2)
Expand All @@ -108,8 +116,13 @@ subroutine fort_initdata(level,time,lo,hi, &
state(i,j,k,UFS+1) = (1.d0 - XHYDROGEN)
end if

diag_eos(i,j,k,TEMP_COMP) = 1000.d0
diag_eos(i,j,k, NE_COMP) = 0.d0
diag_eos(i,j,k,TEMP_COMP) = 0.021d0*(1.0d0 + z_in)**2
diag_eos(i,j,k, NE_COMP) = 0.d0

if (ZHI_COMP .gt. -1) then
diag_eos(i,j,k, ZHI_COMP) = 7.5d0
endif

enddo
enddo
enddo
Expand Down
90 changes: 0 additions & 90 deletions Exec/LyA/fcvode_extras.f90

This file was deleted.

Loading

0 comments on commit df3201f

Please sign in to comment.