Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
zarija committed Sep 4, 2018
2 parents 48f1c02 + 1c7e91e commit 110a5c3
Show file tree
Hide file tree
Showing 30 changed files with 345 additions and 109 deletions.
3 changes: 0 additions & 3 deletions Exec/AMR-density/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

# TOP defines the directory in which we will find Source, Exec, etc
Expand All @@ -24,8 +23,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = FALSE

USE_HPGMG = FALSE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/AMR-density/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
1 change: 0 additions & 1 deletion Exec/AMR-density/inputs.rt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ amr.plot_files_output = 1
amr.plot_file = plt
amr.plot_int = 10
amr.plot_nfiles = 64
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
3 changes: 0 additions & 3 deletions Exec/AMR-zoom/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

# TOP defines the directory in which we will find Source, Exec, etc
Expand All @@ -24,8 +23,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = FALSE

USE_HPGMG = FALSE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/AMR-zoom/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
17 changes: 7 additions & 10 deletions Exec/GravityTests/MacLaurin/Tagging_3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
! ::: time => problem evolution time
! ::: level => refinement level of this array
! ::: -----------------------------------------------------------

subroutine tag_overdensity(tag,tagl1,tagl2,tagl3,tagh1,tagh2,tagh3, &
set,clear, &
den,denl1,denl2,denl3,denh1,denh2,denh3, &
lo,hi,nc,delta,level,avg_den)
lo,hi,nc,domlo,domhi,delta,level,avg_den)

use amrex_fort_module, only : rt => amrex_real
use probdata_module
Expand All @@ -30,7 +31,7 @@ subroutine tag_overdensity(tag,tagl1,tagl2,tagl3,tagh1,tagh2,tagh3, &
integer set, clear, nc, level
integer tagl1,tagl2,tagl3,tagh1,tagh2,tagh3
integer denl1,denl2,denl3,denh1,denh2,denh3
integer lo(3), hi(3)
integer lo(3), hi(3), domlo(3), domhi(3)
integer tag(tagl1:tagh1,tagl2:tagh2,tagl3:tagh3)
real(rt) den(denl1:denh1,denl2:denh2,denl3:denh3,nc)
real(rt) delta(3), avg_den
Expand Down Expand Up @@ -74,21 +75,17 @@ end subroutine tag_overdensity
! ::: level => refinement level of this array
! ::: -----------------------------------------------------------
subroutine tag_region(tag,tagl1,tagl2,tagl3,tagh1,tagh2,tagh3, &
set,clear, &
var,varl1,varl2,varl3,varh1,varh2,varh3, &
lo,hi,nd,domlo,domhi, &
delta,xlo,problo,time,level)
set,lo,hi,domlo,domhi, &
delta,xlo,problo,level)
use amrex_fort_module, only : rt => amrex_real
use probdata_module
implicit none

integer :: set, clear, nd, level
integer :: set,level
integer :: tagl1,tagl2,tagl3,tagh1,tagh2,tagh3
integer :: varl1,varl2,varl3,varh1,varh2,varh3
integer :: lo(3), hi(3), domlo(3), domhi(3)
integer :: tag(tagl1:tagh1,tagl2:tagh2,tagl3:tagh3)
real(rt) :: var(varl1:varh1,varl2:varh2,varl3:varh3,nd)
real(rt) :: delta(3), xlo(3), problo(3), time
real(rt) :: delta(3), xlo(3), problo(3)

integer :: ilo,jlo,klo,ihi,jhi,khi
integer :: i,j,k
Expand Down
3 changes: 0 additions & 3 deletions Exec/HDF5_example/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

# TOP defines the directory in which we will find Source, Exec, etc
Expand All @@ -24,8 +23,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = FALSE

USE_HPGMG = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/HDF5_example/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
3 changes: 0 additions & 3 deletions Exec/LyA/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

# TOP defines the directory in which we will find Source, Exec, etc
Expand All @@ -26,8 +25,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = FALSE

USE_HPGMG = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/LyA/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
1 change: 0 additions & 1 deletion Exec/LyA/inputs_gimlet_in_transit.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ amr.plot_file = plt
amr.plot_int = 20
amr.plot_nfiles = 86
#nyx.plot_z_values = 4.0 3.5 3.0 2.5 2.25 2.0
#particles.write_in_plotfile = 1

amr.plot_vars = density
#amr.derive_plot_vars = particle_mass_density
Expand Down
5 changes: 1 addition & 4 deletions Exec/LyA_AGN/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

# TOP defines the directory in which we will find Source, Exec, etc
Expand All @@ -10,7 +9,7 @@ TOP = ../..
# compilation options
COMP = intel # gnu
USE_MPI = TRUE
USE_OMP = TRUE
USE_OMP = FALSE

PROFILE = TRUE
TRACE_PROFILE = FALSE
Expand All @@ -24,8 +23,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = TRUE

USE_HPGMG = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/LyA_AGN/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
4 changes: 0 additions & 4 deletions Exec/MiniSB/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume

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

Expand All @@ -15,8 +13,6 @@ USE_OMP = FALSE
# Analysis
REEBER = FALSE

USE_HPGMG = FALSE

PRECISION = DOUBLE
DEBUG = FALSE

Expand Down
1 change: 1 addition & 0 deletions Exec/RegressionTest/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ USE_OMP = FALSE

PRECISION = DOUBLE
DEBUG = FALSE
DEBUG = TRUE

# physics
DIM = 3
Expand Down
47 changes: 28 additions & 19 deletions Exec/RegressionTest/Prob_3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,33 @@ subroutine fort_initdata(level,time,lo,hi, &

integer i,j,k

do k = lo(3), hi(3)
do j = lo(2), hi(2)
do i = lo(1), hi(1)
state(i,j,k,URHO) = 1.d0
state(i,j,k,UMX:UMZ) = 0.0d0

state(i,j,k,UEINT) = 10.d0
state(i,j,k,UEDEN) = state(i,j,k,UEINT) + 0.5d0 / state(i,j,k,URHO) * &
(state(i,j,k,UMX)**2 + state(i,j,k,UMY)**2 + state(i,j,k,UMZ)**2)

if (UFS .gt. -1) then
state(i,j,k,UFS ) = XHYDROGEN
state(i,j,k,UFS+1) = (1.d0 - XHYDROGEN)
end if

diag_eos(i,j,k,TEMP_COMP) = 1000.d0
enddo
enddo
enddo
if (ns.gt.1) then

do k = lo(3), hi(3)
do j = lo(2), hi(2)
do i = lo(1), hi(1)
state(i,j,k,URHO) = 1.d0
state(i,j,k,UMX:UMZ) = 0.0d0

state(i,j,k,UEINT) = 10.d0
state(i,j,k,UEDEN) = state(i,j,k,UEINT) + 0.5d0 / state(i,j,k,URHO) * &
(state(i,j,k,UMX)**2 + state(i,j,k,UMY)**2 + state(i,j,k,UMZ)**2)

if (UFS .gt. -1) then
state(i,j,k,UFS ) = XHYDROGEN
state(i,j,k,UFS+1) = (1.d0 - XHYDROGEN)
end if

diag_eos(i,j,k,TEMP_COMP) = 1000.d0
enddo
enddo
enddo

else

state(lo(1):hi(1),lo(2):hi(2),lo(3):hi(3),URHO) = 1.d0

endif


end subroutine fort_initdata
2 changes: 0 additions & 2 deletions Exec/RegressionTest/inputs.mass.nosub
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ nyx.particle_init_type = AsciiFile
nyx.ascii_particle_file = particle_file.mass
particles.particle_output_file = final_particles

particles.write_in_plotfile = 1

# >>>>>>>>>>>>> PARTICLE AGGREGATION OPTIONS <<<<<<<<<<<<<<<<
# "None" "Cell" "Flow"
# >>>>>>>>>>>>> PARTICLE AGGREGATION OPTIONS <<<<<<<<<<<<<<<<
Expand Down
2 changes: 0 additions & 2 deletions Exec/RegressionTest/inputs.mass.sub
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ nyx.particle_init_type = AsciiFile
nyx.ascii_particle_file = particle_file.mass
particles.particle_output_file = final_particles

particles.write_in_plotfile = 1

# >>>>>>>>>>>>> PARTICLE AGGREGATION OPTIONS <<<<<<<<<<<<<<<<
# "None" "Cell" "Flow"
# >>>>>>>>>>>>> PARTICLE AGGREGATION OPTIONS <<<<<<<<<<<<<<<<
Expand Down
39 changes: 39 additions & 0 deletions Exec/SanityCheck/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

CVODE_LIB_DIR ?= $(CVODE_LIB)

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

# compilation options
COMP = gnu
USE_MPI = TRUE
USE_OMP = FALSE

PROFILE = FALSE
TRACE_PROFILE = FALSE
COMM_PROFILE = FALSE
TINY_PROFILE = FALSE

PRECISION = DOUBLE
USE_SINGLE_PRECISION_PARTICLES = TRUE
DEBUG = FALSE

GIMLET = FALSE
REEBER = FALSE

USE_SDC = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
USE_HEATCOOL = TRUE
USE_AGN = FALSE
USE_CVODE = FALSE

Bpack := ./Make.package
Blocs := .

include $(TOP)/Exec/Make.Nyx

4 changes: 0 additions & 4 deletions Exec/SantaBarbara/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# AMREX_HOME defines the directory in which we will find all the BoxLib code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume

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

Expand All @@ -15,8 +13,6 @@ PRECISION = DOUBLE
USE_SINGLE_PRECISION_PARTICLES = FALSE
DEBUG = FALSE

USE_HPGMG = FALSE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
9 changes: 3 additions & 6 deletions Exec/Scaling/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code
AMREX_HOME ?= ../../../amrex

HPGMG_DIR ?= ../../Util/hpgmg/finite-volume
CVODE_LIB_DIR ?= $(CVODE_LIB)

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

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

PROFILE = TRUE
TRACE_PROFILE = FALSE
Expand All @@ -24,8 +23,6 @@ DEBUG = FALSE
GIMLET = FALSE
REEBER = FALSE

USE_HPGMG = TRUE

# physics
DIM = 3
USE_GRAV = TRUE
Expand Down
1 change: 0 additions & 1 deletion Exec/Scaling/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ amr.plot_file = plt
amr.plot_int = -1
amr.plot_nfiles = 64
nyx.plot_z_values = 7.0 6.0 5.0 4.0 3.0 2.0
particles.write_in_plotfile = 1

amr.plot_vars = density xmom ymom zmom rho_e Temp phi_grav
amr.derive_plot_vars = particle_mass_density
Expand Down
Loading

0 comments on commit 110a5c3

Please sign in to comment.