From 0365a6c543b8546a2bb98e95dae5aff4ec653e62 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Tue, 17 Oct 2023 18:29:51 -0700 Subject: [PATCH] Define CASTRO_HOME conditionally in all problem directories --- Diagnostics/DustCollapse/GNUmakefile | 2 +- Diagnostics/Radiation/GNUmakefile | 2 +- Diagnostics/Sedov/GNUmakefile | 2 +- Exec/gravity_tests/DustCollapse/GNUmakefile | 2 +- Exec/gravity_tests/StarGrav/GNUmakefile | 2 +- Exec/gravity_tests/evrard_collapse/GNUmakefile | 2 +- Exec/gravity_tests/hse_convergence/GNUmakefile | 2 +- Exec/gravity_tests/hse_convergence_general/GNUmakefile | 2 +- Exec/gravity_tests/hydrostatic_adjust/GNUmakefile | 2 +- Exec/gravity_tests/uniform_cube/GNUmakefile | 2 +- Exec/gravity_tests/uniform_sphere/GNUmakefile | 2 +- Exec/hydro_tests/KH/GNUmakefile | 2 +- Exec/hydro_tests/Noh/GNUmakefile | 2 +- Exec/hydro_tests/RT/GNUmakefile | 2 +- Exec/hydro_tests/Sedov/GNUmakefile | 2 +- Exec/hydro_tests/Sod/GNUmakefile | 2 +- Exec/hydro_tests/Sod_stellar/GNUmakefile | 2 +- Exec/hydro_tests/Vortices_LWAcoustics/GNUmakefile | 2 +- Exec/hydro_tests/acoustic_pulse/GNUmakefile | 2 +- Exec/hydro_tests/acoustic_pulse_general/GNUmakefile | 2 +- Exec/hydro_tests/double_bubble/GNUmakefile | 2 +- Exec/hydro_tests/double_mach_reflection/GNUmakefile | 2 +- Exec/hydro_tests/gamma_law_bubble/GNUmakefile | 2 +- Exec/hydro_tests/gresho_vortex/GNUmakefile | 2 +- Exec/hydro_tests/oddeven/GNUmakefile | 2 +- Exec/hydro_tests/riemann_2d/GNUmakefile | 2 +- Exec/hydro_tests/rotating_torus/GNUmakefile | 2 +- Exec/hydro_tests/test_convect/GNUmakefile | 2 +- Exec/hydro_tests/toy_convect/GNUmakefile | 2 +- Exec/mhd_tests/Alfven/GNUmakefile | 2 +- Exec/mhd_tests/BrioWu/GNUmakefile | 2 +- Exec/mhd_tests/DaiWoodward/GNUmakefile | 2 +- Exec/mhd_tests/FastRarefaction/GNUmakefile | 2 +- Exec/mhd_tests/LoopAdvection/GNUmakefile | 2 +- Exec/mhd_tests/MagnetosonicWaves/GNUmakefile | 2 +- Exec/mhd_tests/OrszagTang/GNUmakefile | 2 +- Exec/mhd_tests/RT/GNUmakefile | 2 +- Exec/mhd_tests/species/GNUmakefile | 2 +- Exec/radiation_tests/Rad2Tshock/GNUmakefile | 2 +- Exec/radiation_tests/RadBlastWave/GNUmakefile | 2 +- Exec/radiation_tests/RadBreakout/GNUmakefile | 2 +- Exec/radiation_tests/RadFront/GNUmakefile | 2 +- Exec/radiation_tests/RadShestakovBolstad/GNUmakefile | 2 +- Exec/radiation_tests/RadSourceTest/GNUmakefile | 2 +- Exec/radiation_tests/RadSphere/GNUmakefile | 2 +- Exec/radiation_tests/RadSuOlson/GNUmakefile | 2 +- Exec/radiation_tests/RadSuOlsonMG/GNUmakefile | 2 +- Exec/radiation_tests/RadThermalWave/GNUmakefile | 2 +- Exec/reacting_tests/bubble_convergence/GNUmakefile | 2 +- Exec/reacting_tests/nse_test/GNUmakefile | 2 +- Exec/reacting_tests/reacting_bubble/GNUmakefile | 2 +- Exec/reacting_tests/reacting_convergence/GNUmakefile | 2 +- Exec/reacting_tests/toy_flame/GNUmakefile | 2 +- Exec/scf_tests/single_star/GNUmakefile | 2 +- Exec/science/Detonation/GNUmakefile | 2 +- Exec/science/Detonation/GNUmakefile.nse | 2 +- Exec/science/bwp-rad/GNUmakefile | 2 +- Exec/science/celldet/GNUmakefile | 2 +- Exec/science/convective_flame/GNUmakefile | 2 +- Exec/science/flame/GNUmakefile | 2 +- Exec/science/flame_tube/GNUmakefile | 2 +- Exec/science/flame_wave/GNUmakefile | 2 +- Exec/science/massive_star/GNUmakefile | 2 +- Exec/science/nova/GNUmakefile | 2 +- Exec/science/planet/GNUmakefile | 2 +- Exec/science/subchandra/GNUmakefile | 2 +- Exec/science/subchandra/GNUmakefile.nse_net | 2 +- Exec/science/xrb_layered/GNUmakefile | 2 +- Exec/science/xrb_mixed/GNUmakefile | 2 +- Exec/unit_tests/diffusion_test/GNUmakefile | 2 +- Exec/unit_tests/model_burner/GNUmakefile | 2 +- Exec/unit_tests/particles_test/GNUmakefile | 2 +- Util/exact_riemann/GNUmakefile | 2 +- 73 files changed, 73 insertions(+), 73 deletions(-) diff --git a/Diagnostics/DustCollapse/GNUmakefile b/Diagnostics/DustCollapse/GNUmakefile index 66c5b7d600..8facc39491 100644 --- a/Diagnostics/DustCollapse/GNUmakefile +++ b/Diagnostics/DustCollapse/GNUmakefile @@ -23,7 +23,7 @@ Bpack := ./Make.package Blocs := . # EXTERN_SEARCH = . -CASTRO_HOME := ../.. +CASTRO_HOME ?= ../.. INCLUDE_LOCATIONS += $(AMREX_HOME)/Src/Extern/amrdata include $(AMREX_HOME)/Src/Extern/amrdata/Make.package diff --git a/Diagnostics/Radiation/GNUmakefile b/Diagnostics/Radiation/GNUmakefile index 2dc747d854..2fd07f63a6 100644 --- a/Diagnostics/Radiation/GNUmakefile +++ b/Diagnostics/Radiation/GNUmakefile @@ -28,7 +28,7 @@ Bpack := ./Make.package Blocs := . # EXTERN_SEARCH = . -CASTRO_HOME := ../.. +CASTRO_HOME ?= ../.. INCLUDE_LOCATIONS += $(AMREX_HOME)/Src/Extern/amrdata include $(AMREX_HOME)/Src/Extern/amrdata/Make.package diff --git a/Diagnostics/Sedov/GNUmakefile b/Diagnostics/Sedov/GNUmakefile index d9b9c53ec4..d3a5bf5095 100644 --- a/Diagnostics/Sedov/GNUmakefile +++ b/Diagnostics/Sedov/GNUmakefile @@ -23,7 +23,7 @@ Bpack := ./Make.package Blocs := . # EXTERN_SEARCH = . -CASTRO_HOME := ../.. +CASTRO_HOME ?= ../.. #INCLUDE_LOCATIONS += $(AMREX_HOME)/Src/Extern/amrdata #include $(AMREX_HOME)/Src/Extern/amrdata/Make.package diff --git a/Exec/gravity_tests/DustCollapse/GNUmakefile b/Exec/gravity_tests/DustCollapse/GNUmakefile index ae65e0c64e..46765f083f 100644 --- a/Exec/gravity_tests/DustCollapse/GNUmakefile +++ b/Exec/gravity_tests/DustCollapse/GNUmakefile @@ -17,7 +17,7 @@ USE_MHD = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/gravity_tests/StarGrav/GNUmakefile b/Exec/gravity_tests/StarGrav/GNUmakefile index 1da2677910..e72d26b5b4 100644 --- a/Exec/gravity_tests/StarGrav/GNUmakefile +++ b/Exec/gravity_tests/StarGrav/GNUmakefile @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/gravity_tests/evrard_collapse/GNUmakefile b/Exec/gravity_tests/evrard_collapse/GNUmakefile index 9deefa2afa..59e2210ebb 100644 --- a/Exec/gravity_tests/evrard_collapse/GNUmakefile +++ b/Exec/gravity_tests/evrard_collapse/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/gravity_tests/hse_convergence/GNUmakefile b/Exec/gravity_tests/hse_convergence/GNUmakefile index d40da803b8..3dd162d714 100644 --- a/Exec/gravity_tests/hse_convergence/GNUmakefile +++ b/Exec/gravity_tests/hse_convergence/GNUmakefile @@ -13,7 +13,7 @@ USE_MODEL_PARSER = TRUE USE_MAESTRO_INIT = FALSE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/gravity_tests/hse_convergence_general/GNUmakefile b/Exec/gravity_tests/hse_convergence_general/GNUmakefile index eb0da8b33d..16b3c0a339 100644 --- a/Exec/gravity_tests/hse_convergence_general/GNUmakefile +++ b/Exec/gravity_tests/hse_convergence_general/GNUmakefile @@ -18,7 +18,7 @@ USE_DIFFUSION = FALSE USE_MODEL_PARSER = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/gravity_tests/hydrostatic_adjust/GNUmakefile b/Exec/gravity_tests/hydrostatic_adjust/GNUmakefile index 16a572c93a..24c7a5ebce 100644 --- a/Exec/gravity_tests/hydrostatic_adjust/GNUmakefile +++ b/Exec/gravity_tests/hydrostatic_adjust/GNUmakefile @@ -13,7 +13,7 @@ USE_GRAV = TRUE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/gravity_tests/uniform_cube/GNUmakefile b/Exec/gravity_tests/uniform_cube/GNUmakefile index e5c37c4da5..f2384492bb 100644 --- a/Exec/gravity_tests/uniform_cube/GNUmakefile +++ b/Exec/gravity_tests/uniform_cube/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/gravity_tests/uniform_sphere/GNUmakefile b/Exec/gravity_tests/uniform_sphere/GNUmakefile index 60fb5ac5bf..11e25cd0d5 100644 --- a/Exec/gravity_tests/uniform_sphere/GNUmakefile +++ b/Exec/gravity_tests/uniform_sphere/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/hydro_tests/KH/GNUmakefile b/Exec/hydro_tests/KH/GNUmakefile index 92ae5d26d7..34c175c705 100644 --- a/Exec/hydro_tests/KH/GNUmakefile +++ b/Exec/hydro_tests/KH/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/hydro_tests/Noh/GNUmakefile b/Exec/hydro_tests/Noh/GNUmakefile index d21bf14a6d..9422749b1a 100644 --- a/Exec/hydro_tests/Noh/GNUmakefile +++ b/Exec/hydro_tests/Noh/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/hydro_tests/RT/GNUmakefile b/Exec/hydro_tests/RT/GNUmakefile index 1e6aa32d0f..16627fdff6 100644 --- a/Exec/hydro_tests/RT/GNUmakefile +++ b/Exec/hydro_tests/RT/GNUmakefile @@ -14,7 +14,7 @@ USE_PARTICLES = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/Sedov/GNUmakefile b/Exec/hydro_tests/Sedov/GNUmakefile index 61172348e3..13bc8a3994 100644 --- a/Exec/hydro_tests/Sedov/GNUmakefile +++ b/Exec/hydro_tests/Sedov/GNUmakefile @@ -15,7 +15,7 @@ USE_MHD = FALSE BL_NO_FORT := TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/Sod/GNUmakefile b/Exec/hydro_tests/Sod/GNUmakefile index a4a4da7ebd..310d838d60 100644 --- a/Exec/hydro_tests/Sod/GNUmakefile +++ b/Exec/hydro_tests/Sod/GNUmakefile @@ -15,7 +15,7 @@ USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/Sod_stellar/GNUmakefile b/Exec/hydro_tests/Sod_stellar/GNUmakefile index 39dea59312..1204456d20 100644 --- a/Exec/hydro_tests/Sod_stellar/GNUmakefile +++ b/Exec/hydro_tests/Sod_stellar/GNUmakefile @@ -16,7 +16,7 @@ USE_MHD = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/hydro_tests/Vortices_LWAcoustics/GNUmakefile b/Exec/hydro_tests/Vortices_LWAcoustics/GNUmakefile index 77e31fbc96..5fa6aa5588 100644 --- a/Exec/hydro_tests/Vortices_LWAcoustics/GNUmakefile +++ b/Exec/hydro_tests/Vortices_LWAcoustics/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/acoustic_pulse/GNUmakefile b/Exec/hydro_tests/acoustic_pulse/GNUmakefile index b4ecd7c373..d192f2bf66 100644 --- a/Exec/hydro_tests/acoustic_pulse/GNUmakefile +++ b/Exec/hydro_tests/acoustic_pulse/GNUmakefile @@ -11,7 +11,7 @@ USE_MPI = TRUE USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/acoustic_pulse_general/GNUmakefile b/Exec/hydro_tests/acoustic_pulse_general/GNUmakefile index 152e48a8b9..86ab649620 100644 --- a/Exec/hydro_tests/acoustic_pulse_general/GNUmakefile +++ b/Exec/hydro_tests/acoustic_pulse_general/GNUmakefile @@ -11,7 +11,7 @@ USE_MPI = TRUE USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := helmholtz diff --git a/Exec/hydro_tests/double_bubble/GNUmakefile b/Exec/hydro_tests/double_bubble/GNUmakefile index 3b72168d0a..bc20d7fd0b 100644 --- a/Exec/hydro_tests/double_bubble/GNUmakefile +++ b/Exec/hydro_tests/double_bubble/GNUmakefile @@ -13,7 +13,7 @@ USE_GRAV = TRUE USE_MODEL_PARSER = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := multigamma diff --git a/Exec/hydro_tests/double_mach_reflection/GNUmakefile b/Exec/hydro_tests/double_mach_reflection/GNUmakefile index 17c05a16b8..c0a018bd61 100644 --- a/Exec/hydro_tests/double_mach_reflection/GNUmakefile +++ b/Exec/hydro_tests/double_mach_reflection/GNUmakefile @@ -12,7 +12,7 @@ USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/gamma_law_bubble/GNUmakefile b/Exec/hydro_tests/gamma_law_bubble/GNUmakefile index 2c3f509d34..ecc26ba842 100644 --- a/Exec/hydro_tests/gamma_law_bubble/GNUmakefile +++ b/Exec/hydro_tests/gamma_law_bubble/GNUmakefile @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/hydro_tests/gresho_vortex/GNUmakefile b/Exec/hydro_tests/gresho_vortex/GNUmakefile index 48d938d301..b86f9ceee3 100644 --- a/Exec/hydro_tests/gresho_vortex/GNUmakefile +++ b/Exec/hydro_tests/gresho_vortex/GNUmakefile @@ -16,7 +16,7 @@ USE_MPI = TRUE USE_OMP = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/oddeven/GNUmakefile b/Exec/hydro_tests/oddeven/GNUmakefile index a836a95f58..2b439bc200 100644 --- a/Exec/hydro_tests/oddeven/GNUmakefile +++ b/Exec/hydro_tests/oddeven/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_SHOCK_VAR = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/riemann_2d/GNUmakefile b/Exec/hydro_tests/riemann_2d/GNUmakefile index 66059a204d..338d8e8752 100644 --- a/Exec/hydro_tests/riemann_2d/GNUmakefile +++ b/Exec/hydro_tests/riemann_2d/GNUmakefile @@ -11,7 +11,7 @@ USE_MPI = FALSE USE_OMP = FALSE # define CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/hydro_tests/rotating_torus/GNUmakefile b/Exec/hydro_tests/rotating_torus/GNUmakefile index 9b7d90205f..4a2e68f8ee 100644 --- a/Exec/hydro_tests/rotating_torus/GNUmakefile +++ b/Exec/hydro_tests/rotating_torus/GNUmakefile @@ -15,7 +15,7 @@ USE_ROTATION = TRUE USE_HYBRID_MOMENTUM = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := polytrope diff --git a/Exec/hydro_tests/test_convect/GNUmakefile b/Exec/hydro_tests/test_convect/GNUmakefile index 5b429411cb..fe2519a9a4 100644 --- a/Exec/hydro_tests/test_convect/GNUmakefile +++ b/Exec/hydro_tests/test_convect/GNUmakefile @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/hydro_tests/toy_convect/GNUmakefile b/Exec/hydro_tests/toy_convect/GNUmakefile index 915f919313..7fe2486a14 100644 --- a/Exec/hydro_tests/toy_convect/GNUmakefile +++ b/Exec/hydro_tests/toy_convect/GNUmakefile @@ -13,7 +13,7 @@ USE_REACT = FALSE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/mhd_tests/Alfven/GNUmakefile b/Exec/mhd_tests/Alfven/GNUmakefile index 70631f2f6c..82a45a872d 100644 --- a/Exec/mhd_tests/Alfven/GNUmakefile +++ b/Exec/mhd_tests/Alfven/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/BrioWu/GNUmakefile b/Exec/mhd_tests/BrioWu/GNUmakefile index 3c743698f6..d0420ce36b 100644 --- a/Exec/mhd_tests/BrioWu/GNUmakefile +++ b/Exec/mhd_tests/BrioWu/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/DaiWoodward/GNUmakefile b/Exec/mhd_tests/DaiWoodward/GNUmakefile index a241c28921..18a723c41d 100644 --- a/Exec/mhd_tests/DaiWoodward/GNUmakefile +++ b/Exec/mhd_tests/DaiWoodward/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/FastRarefaction/GNUmakefile b/Exec/mhd_tests/FastRarefaction/GNUmakefile index a241c28921..18a723c41d 100644 --- a/Exec/mhd_tests/FastRarefaction/GNUmakefile +++ b/Exec/mhd_tests/FastRarefaction/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/LoopAdvection/GNUmakefile b/Exec/mhd_tests/LoopAdvection/GNUmakefile index 067e166416..a15a0d810c 100644 --- a/Exec/mhd_tests/LoopAdvection/GNUmakefile +++ b/Exec/mhd_tests/LoopAdvection/GNUmakefile @@ -14,7 +14,7 @@ USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/MagnetosonicWaves/GNUmakefile b/Exec/mhd_tests/MagnetosonicWaves/GNUmakefile index 70631f2f6c..82a45a872d 100644 --- a/Exec/mhd_tests/MagnetosonicWaves/GNUmakefile +++ b/Exec/mhd_tests/MagnetosonicWaves/GNUmakefile @@ -13,7 +13,7 @@ USE_OMP = FALSE USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/OrszagTang/GNUmakefile b/Exec/mhd_tests/OrszagTang/GNUmakefile index 067e166416..a15a0d810c 100644 --- a/Exec/mhd_tests/OrszagTang/GNUmakefile +++ b/Exec/mhd_tests/OrszagTang/GNUmakefile @@ -14,7 +14,7 @@ USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/RT/GNUmakefile b/Exec/mhd_tests/RT/GNUmakefile index d824c4c7bc..dd25453424 100644 --- a/Exec/mhd_tests/RT/GNUmakefile +++ b/Exec/mhd_tests/RT/GNUmakefile @@ -16,7 +16,7 @@ USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/mhd_tests/species/GNUmakefile b/Exec/mhd_tests/species/GNUmakefile index d97ea51f36..92cd3ac759 100644 --- a/Exec/mhd_tests/species/GNUmakefile +++ b/Exec/mhd_tests/species/GNUmakefile @@ -14,7 +14,7 @@ USE_MHD = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := gamma_law diff --git a/Exec/radiation_tests/Rad2Tshock/GNUmakefile b/Exec/radiation_tests/Rad2Tshock/GNUmakefile index 533b5d93e0..6d2074453f 100644 --- a/Exec/radiation_tests/Rad2Tshock/GNUmakefile +++ b/Exec/radiation_tests/Rad2Tshock/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := gamma_law diff --git a/Exec/radiation_tests/RadBlastWave/GNUmakefile b/Exec/radiation_tests/RadBlastWave/GNUmakefile index 776332a35e..5421e7556b 100644 --- a/Exec/radiation_tests/RadBlastWave/GNUmakefile +++ b/Exec/radiation_tests/RadBlastWave/GNUmakefile @@ -8,7 +8,7 @@ USE_MPI = TRUE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := gamma_law diff --git a/Exec/radiation_tests/RadBreakout/GNUmakefile b/Exec/radiation_tests/RadBreakout/GNUmakefile index b3efa40ef8..458a92b335 100644 --- a/Exec/radiation_tests/RadBreakout/GNUmakefile +++ b/Exec/radiation_tests/RadBreakout/GNUmakefile @@ -13,7 +13,7 @@ USE_RAD = TRUE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR = breakout NETWORK_DIR := general_null diff --git a/Exec/radiation_tests/RadFront/GNUmakefile b/Exec/radiation_tests/RadFront/GNUmakefile index f7695780c2..138a8b4c7a 100644 --- a/Exec/radiation_tests/RadFront/GNUmakefile +++ b/Exec/radiation_tests/RadFront/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := gamma_law diff --git a/Exec/radiation_tests/RadShestakovBolstad/GNUmakefile b/Exec/radiation_tests/RadShestakovBolstad/GNUmakefile index 7336338c2a..26823221a1 100644 --- a/Exec/radiation_tests/RadShestakovBolstad/GNUmakefile +++ b/Exec/radiation_tests/RadShestakovBolstad/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := rad_power_law diff --git a/Exec/radiation_tests/RadSourceTest/GNUmakefile b/Exec/radiation_tests/RadSourceTest/GNUmakefile index 45407a5185..d610773323 100644 --- a/Exec/radiation_tests/RadSourceTest/GNUmakefile +++ b/Exec/radiation_tests/RadSourceTest/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # has the f90 routine ca_initgroups and group structure in probdata_module #HAS_INITGROUPS = TRUE diff --git a/Exec/radiation_tests/RadSphere/GNUmakefile b/Exec/radiation_tests/RadSphere/GNUmakefile index 0bfdbcb98e..10cf9f1371 100644 --- a/Exec/radiation_tests/RadSphere/GNUmakefile +++ b/Exec/radiation_tests/RadSphere/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := rad_power_law diff --git a/Exec/radiation_tests/RadSuOlson/GNUmakefile b/Exec/radiation_tests/RadSuOlson/GNUmakefile index 4c47a5af11..33029100b7 100644 --- a/Exec/radiation_tests/RadSuOlson/GNUmakefile +++ b/Exec/radiation_tests/RadSuOlson/GNUmakefile @@ -9,7 +9,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := rad_power_law diff --git a/Exec/radiation_tests/RadSuOlsonMG/GNUmakefile b/Exec/radiation_tests/RadSuOlsonMG/GNUmakefile index 295775270f..2c38a354e3 100644 --- a/Exec/radiation_tests/RadSuOlsonMG/GNUmakefile +++ b/Exec/radiation_tests/RadSuOlsonMG/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := rad_power_law diff --git a/Exec/radiation_tests/RadThermalWave/GNUmakefile b/Exec/radiation_tests/RadThermalWave/GNUmakefile index f7695780c2..138a8b4c7a 100644 --- a/Exec/radiation_tests/RadThermalWave/GNUmakefile +++ b/Exec/radiation_tests/RadThermalWave/GNUmakefile @@ -10,7 +10,7 @@ PROFILE = FALSE USE_RAD = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. EOS_DIR := gamma_law diff --git a/Exec/reacting_tests/bubble_convergence/GNUmakefile b/Exec/reacting_tests/bubble_convergence/GNUmakefile index 857acab958..9882db5705 100644 --- a/Exec/reacting_tests/bubble_convergence/GNUmakefile +++ b/Exec/reacting_tests/bubble_convergence/GNUmakefile @@ -13,7 +13,7 @@ USE_MODEL_PARSER = TRUE USE_MAESTRO_INIT = FALSE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/reacting_tests/nse_test/GNUmakefile b/Exec/reacting_tests/nse_test/GNUmakefile index 0c9593102e..25b79754db 100644 --- a/Exec/reacting_tests/nse_test/GNUmakefile +++ b/Exec/reacting_tests/nse_test/GNUmakefile @@ -12,7 +12,7 @@ USE_MPI = TRUE USE_REACT = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/reacting_tests/reacting_bubble/GNUmakefile b/Exec/reacting_tests/reacting_bubble/GNUmakefile index 887e91cead..e2cdac8ef9 100644 --- a/Exec/reacting_tests/reacting_bubble/GNUmakefile +++ b/Exec/reacting_tests/reacting_bubble/GNUmakefile @@ -12,7 +12,7 @@ USE_REACT = TRUE USE_MODEL_PARSER = TRUE USE_MAESTRO_INIT = FALSE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/reacting_tests/reacting_convergence/GNUmakefile b/Exec/reacting_tests/reacting_convergence/GNUmakefile index b762c73b9d..d8114471f2 100644 --- a/Exec/reacting_tests/reacting_convergence/GNUmakefile +++ b/Exec/reacting_tests/reacting_convergence/GNUmakefile @@ -14,7 +14,7 @@ USE_OMP = FALSE USE_REACT = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in Castro/EOS EOS_DIR := helmholtz diff --git a/Exec/reacting_tests/toy_flame/GNUmakefile b/Exec/reacting_tests/toy_flame/GNUmakefile index e520d25589..66a508cf29 100644 --- a/Exec/reacting_tests/toy_flame/GNUmakefile +++ b/Exec/reacting_tests/toy_flame/GNUmakefile @@ -14,7 +14,7 @@ USE_REACT = TRUE USE_DIFFUSION = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := gamma_law diff --git a/Exec/scf_tests/single_star/GNUmakefile b/Exec/scf_tests/single_star/GNUmakefile index 36c9f2b8fe..1fb3b047d5 100644 --- a/Exec/scf_tests/single_star/GNUmakefile +++ b/Exec/scf_tests/single_star/GNUmakefile @@ -1,7 +1,7 @@ # Define the location of the CASTRO top directory, # if not already defined by an environment variable. -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # Location of this directory. Useful if # you're trying to compile this from another location. diff --git a/Exec/science/Detonation/GNUmakefile b/Exec/science/Detonation/GNUmakefile index 1a780bb034..cd2f31881d 100644 --- a/Exec/science/Detonation/GNUmakefile +++ b/Exec/science/Detonation/GNUmakefile @@ -11,7 +11,7 @@ USE_MPI = FALSE USE_REACT = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/science/Detonation/GNUmakefile.nse b/Exec/science/Detonation/GNUmakefile.nse index c105f3f15d..7354de8b46 100644 --- a/Exec/science/Detonation/GNUmakefile.nse +++ b/Exec/science/Detonation/GNUmakefile.nse @@ -12,7 +12,7 @@ USE_OMP = FALSE USE_REACT = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/science/bwp-rad/GNUmakefile b/Exec/science/bwp-rad/GNUmakefile index ec43f0c0f2..8036468cec 100644 --- a/Exec/science/bwp-rad/GNUmakefile +++ b/Exec/science/bwp-rad/GNUmakefile @@ -19,7 +19,7 @@ USE_REACT = FALSE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. #This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := gamma_law diff --git a/Exec/science/celldet/GNUmakefile b/Exec/science/celldet/GNUmakefile index 96210ab02a..3883f52c94 100644 --- a/Exec/science/celldet/GNUmakefile +++ b/Exec/science/celldet/GNUmakefile @@ -20,7 +20,7 @@ USE_MHD = FALSE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. #GPU_COMPATIBLE_PROBLEM = TRUE diff --git a/Exec/science/convective_flame/GNUmakefile b/Exec/science/convective_flame/GNUmakefile index d89ef1ee16..04a8904046 100644 --- a/Exec/science/convective_flame/GNUmakefile +++ b/Exec/science/convective_flame/GNUmakefile @@ -18,7 +18,7 @@ USE_DIFFUSION = TRUE USE_MODEL_PARSER = TRUE NUM_MODELS := 2 -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := gamma_law diff --git a/Exec/science/flame/GNUmakefile b/Exec/science/flame/GNUmakefile index ecf299c235..458b0a874f 100644 --- a/Exec/science/flame/GNUmakefile +++ b/Exec/science/flame/GNUmakefile @@ -13,7 +13,7 @@ USE_REACT = TRUE USE_DIFFUSION = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/science/flame_tube/GNUmakefile b/Exec/science/flame_tube/GNUmakefile index 31b1e45bae..916af2c938 100644 --- a/Exec/science/flame_tube/GNUmakefile +++ b/Exec/science/flame_tube/GNUmakefile @@ -16,7 +16,7 @@ USE_ROTATION = FALSE USE_DIFFUSION = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. USE_JACOBIAN_CACHING = TRUE USE_MODEL_PARSER = TRUE diff --git a/Exec/science/flame_wave/GNUmakefile b/Exec/science/flame_wave/GNUmakefile index abfba80c98..59998e59f1 100644 --- a/Exec/science/flame_wave/GNUmakefile +++ b/Exec/science/flame_wave/GNUmakefile @@ -16,7 +16,7 @@ USE_ROTATION = TRUE USE_DIFFUSION = TRUE # define the location of the CASTRO top directory -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. USE_JACOBIAN_CACHING = TRUE USE_MODEL_PARSER = TRUE diff --git a/Exec/science/massive_star/GNUmakefile b/Exec/science/massive_star/GNUmakefile index 25207f8628..eb3e002e5e 100644 --- a/Exec/science/massive_star/GNUmakefile +++ b/Exec/science/massive_star/GNUmakefile @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/science/nova/GNUmakefile b/Exec/science/nova/GNUmakefile index 54a237a4c1..6772310dd6 100644 --- a/Exec/science/nova/GNUmakefile +++ b/Exec/science/nova/GNUmakefile @@ -13,7 +13,7 @@ USE_REACT = TRUE USE_DIFFUSION = TRUE USE_GRAV = TRUE -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. USE_MODEL_PARSER = TRUE diff --git a/Exec/science/planet/GNUmakefile b/Exec/science/planet/GNUmakefile index e61590baed..d9ad67e5f7 100644 --- a/Exec/science/planet/GNUmakefile +++ b/Exec/science/planet/GNUmakefile @@ -23,7 +23,7 @@ USE_ROTATION = FALSE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. #This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := gamma_law diff --git a/Exec/science/subchandra/GNUmakefile b/Exec/science/subchandra/GNUmakefile index 6038c63e3a..8f85063ebe 100644 --- a/Exec/science/subchandra/GNUmakefile +++ b/Exec/science/subchandra/GNUmakefile @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/science/subchandra/GNUmakefile.nse_net b/Exec/science/subchandra/GNUmakefile.nse_net index 869a30c04c..8a54ced4b4 100644 --- a/Exec/science/subchandra/GNUmakefile.nse_net +++ b/Exec/science/subchandra/GNUmakefile.nse_net @@ -1,4 +1,4 @@ -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. PRECISION = DOUBLE PROFILE = FALSE diff --git a/Exec/science/xrb_layered/GNUmakefile b/Exec/science/xrb_layered/GNUmakefile index e5d7fada82..457ae455f2 100644 --- a/Exec/science/xrb_layered/GNUmakefile +++ b/Exec/science/xrb_layered/GNUmakefile @@ -14,7 +14,7 @@ USE_REACT = TRUE USE_MODEL_PARSER = TRUE USE_RNG_STATE_INIT = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/science/xrb_mixed/GNUmakefile b/Exec/science/xrb_mixed/GNUmakefile index 2d69ec6f98..17ffa1bb53 100644 --- a/Exec/science/xrb_mixed/GNUmakefile +++ b/Exec/science/xrb_mixed/GNUmakefile @@ -13,7 +13,7 @@ USE_REACT = TRUE USE_MODEL_PARSER = TRUE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/unit_tests/diffusion_test/GNUmakefile b/Exec/unit_tests/diffusion_test/GNUmakefile index b855c83e7c..742a994a45 100644 --- a/Exec/unit_tests/diffusion_test/GNUmakefile +++ b/Exec/unit_tests/diffusion_test/GNUmakefile @@ -14,7 +14,7 @@ USE_DIFFUSION = TRUE USE_POST_SIM = TRUE -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Exec/unit_tests/model_burner/GNUmakefile b/Exec/unit_tests/model_burner/GNUmakefile index d899b36b0a..5cb6c86d03 100644 --- a/Exec/unit_tests/model_burner/GNUmakefile +++ b/Exec/unit_tests/model_burner/GNUmakefile @@ -22,7 +22,7 @@ USE_REACT = TRUE USE_MAESTRO_INIT = FALSE -CASTRO_HOME = ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/eos EOS_DIR := helmholtz diff --git a/Exec/unit_tests/particles_test/GNUmakefile b/Exec/unit_tests/particles_test/GNUmakefile index d7d32ccc4a..838eaf2282 100644 --- a/Exec/unit_tests/particles_test/GNUmakefile +++ b/Exec/unit_tests/particles_test/GNUmakefile @@ -15,7 +15,7 @@ USE_REACT = FALSE USE_POST_SIM = TRUE -CASTRO_HOME := ../../.. +CASTRO_HOME ?= ../../.. # This sets the EOS directory in $(MICROPHYSICS_HOME)/EOS EOS_DIR := gamma_law diff --git a/Util/exact_riemann/GNUmakefile b/Util/exact_riemann/GNUmakefile index 8e47150b9a..76bc8e8a9f 100644 --- a/Util/exact_riemann/GNUmakefile +++ b/Util/exact_riemann/GNUmakefile @@ -14,7 +14,7 @@ USE_ALL_CASTRO = FALSE USE_AMR_CORE = FALSE # define the location of the CASTRO top directory -CASTRO_HOME := ../.. +CASTRO_HOME ?= ../.. # This sets the EOS directory in Castro/EOS EOS_DIR := helmholtz