Skip to content

Commit

Permalink
Fix AMREX_HOME in Tests and Tutorials only (AMReX-Codes#1233)
Browse files Browse the repository at this point in the history
* 1) Replace all instances of "AMREX_HOME ?=" by "AMREX_HOME =" in Tests and Tutorials only.
   Since these exist within the amrex directory structure the default should be that they
   always use the amrex they are part of, not the one set by the user's environment variable
2) Replace all instances of BoxLib/BOXLIB/boxlib by AMReX.
  • Loading branch information
asalmgren authored Aug 6, 2020
1 parent 888e804 commit fe8cc5f
Show file tree
Hide file tree
Showing 129 changed files with 140 additions and 163 deletions.
2 changes: 1 addition & 1 deletion Tests/Algoim/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMP = gnu

DIM = 3

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/AsyncOut/multifab/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE
DIM = 3
Expand Down
2 changes: 1 addition & 1 deletion Tests/BBIOBenchmark/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../amrex
AMREX_HOME = ../../../amrex

PROFILE = FALSE
PRECISION = DOUBLE
Expand Down
2 changes: 1 addition & 1 deletion Tests/BaseFabTesting/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/CudaGraphs/BuildingGraphs/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/CudaGraphs/GraphBoundary/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/CudaGraphs/GraphInitTest/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/CudaGraphs/GraphReuseCopy/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/CudaGraphs/GraphWithMemcpy/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
3 changes: 1 addition & 2 deletions Tests/GPU/CuptiTest/Exec/CUDA/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code.
# If you set AMREX_HOME as an environment variable, this line will be ignored
AMREX_HOME ?= ../../../../../
AMREX_HOME = ../../../../../

DEBUG = FALSE
USE_MPI = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/Fuse/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/Locking/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/RandomNumberGeneration/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/Vector/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/GPU/libamrex_CUDA/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_INSTALL_DIR ?= ../../../tmp_install_dir
AMREX_INSTALL_DIR = ?../../../tmp_install_dir
CUDA_ARCH ?= 60

CXX = nvcc
Expand Down
2 changes: 1 addition & 1 deletion Tests/HDF5Benchmark/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/CellEB/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/CellEB2/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs

Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/CellOverset/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/EBConvergenceTest/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs

Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/EBTensor/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMP = gnu

DIM = 3

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs

Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/EBflux_grad/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs

Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/MLMG/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG ?= FALSE
DIM ?= 3
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/NodalOverset/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COMP = gnu

DIM = 2

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/NodeEB/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COMP = gnu

DIM = 3

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinearSolvers/TensorOverset/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COMP = gnu

DIM = 3

AMREX_HOME ?= ../../..
AMREX_HOME = ../../..

include $(AMREX_HOME)/Tools/GNUMake/Make.defs
include ./Make.package
Expand Down
2 changes: 1 addition & 1 deletion Tests/MKDir/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../amrex
AMREX_HOME = ../../../amrex

DEBUG = FALSE
USE_MPI = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/NoFort/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE
DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/AssignDensity/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/AssignMultiLevelDensity/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/AsyncIO/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/GhostsAndVirtuals/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/InitFromAscii/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/Intersection/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/NeighborParticles/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParallelContext/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParticleIterator/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParticleMesh/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParticleReduce/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/ParticleTransformations/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/Redistribute/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/SparseBins/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Particles/TypeDescriptor/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tests/PnetCDFBenchmark/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = TRUE
DEBUG = FALSE
Expand Down
3 changes: 1 addition & 2 deletions Tests/ProfTests/HeatEquation_EX1_C/Exec/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code.
# If you set AMREX_HOME as an environment variable, this line will be ignored
AMREX_HOME ?= ../../../../
AMREX_HOME = ../../../../

DEBUG = FALSE
USE_MPI = TRUE
Expand Down
3 changes: 1 addition & 2 deletions Tests/ProfTests/ThirdParty/Exec/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# AMREX_HOME defines the directory in which we will find all the AMReX code.
# If you set AMREX_HOME as an environment variable, this line will be ignored
AMREX_HOME ?= ../../../..
AMREX_HOME = ../../../..

DEBUG = FALSE
USE_MPI = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/SinglePrecision/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

PRECISION = FLOAT

Expand Down
2 changes: 1 addition & 1 deletion Tests/Slice/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE
DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Stream/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../
AMREX_HOME = ../../../

DEBUG = FALSE
USE_MPI = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/TypeCheck/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE
DEBUG = TRUE
Expand Down
2 changes: 1 addition & 1 deletion Tests/Vectorization/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE

Expand Down
2 changes: 1 addition & 1 deletion Tests/complementIn/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../
AMREX_HOME = ../../

DEBUG = FALSE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../../..
AMREX_HOME = ../../../../..

PRECISION = DOUBLE
PROFILE = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../../..
AMREX_HOME = ../../../../..
USE_EB = FALSE
PRECISION = DOUBLE
PROFILE = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../../..
AMREX_HOME = ../../../../..
USE_EB =FALSE
PRECISION = DOUBLE
PROFILE = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Tutorials/Amr/Advection_AmrLevel/Source/Src_2d/Adv_2d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ subroutine advect(time, lo, hi, &
! We like to allocate these **pointers** here and then pass them to a function
! to remove their pointerness for performance, because normally pointers could
! be aliasing. We need to use pointers instead of allocatable arrays because
! we like to use BoxLib's bl_allocate to allocate memeory instead of the intrinsic
! we like to use AMReX's bl_allocate to allocate memeory instead of the intrinsic
! allocate. Bl_allocate is much faster than allocate inside OMP.
! Note that one MUST CALL BL_DEALLOCATE.

Expand Down
2 changes: 1 addition & 1 deletion Tutorials/Amr/Advection_AmrLevel/Source/Src_3d/Adv_3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ subroutine advect(time, lo, hi, &
! We like to allocate these **pointers** here and then pass them to a function
! to remove their pointerness for performance, because normally pointers could
! be aliasing. We need to use pointers instead of allocatable arrays because
! we like to use BoxLib's bl_allocate to allocate memeory instead of the intrinsic
! we like to use AMReX's bl_allocate to allocate memeory instead of the intrinsic
! allocate. Bl_allocate is much faster than allocate inside OMP.
! Note that one MUST CALL BL_DEALLOCATE.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AMREX_HOME ?= ../../../../../../
AMREX_HOME = ../../../../../../

PRECISION = DOUBLE
PROFILE = FALSE
Expand Down
Loading

0 comments on commit fe8cc5f

Please sign in to comment.