Skip to content

Commit a6394da

Browse files
authored
Tests/Amr: Fix compilation error for non-particle cases (#4546)
1 parent bf9e2d9 commit a6394da

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Tests/Amr/Advection_AmrCore/Exec/Make.Adv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ include $(Bpack)
1818
INCLUDE_LOCATIONS += $(Blocs)
1919
VPATH_LOCATIONS += $(Blocs)
2020

21-
Pdirs := Base Boundary AmrCore Particle
21+
Pdirs := Base Boundary AmrCore
22+
ifeq ($(USE_PARTICLES),TRUE)
23+
Pdirs += Particle
24+
endif
2225
Ppack += $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
2326

2427
include $(Ppack)

Tests/Amr/Advection_AmrLevel/Exec/Make.Adv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ include $(Bpack)
1818
INCLUDE_LOCATIONS += $(Blocs)
1919
VPATH_LOCATIONS += $(Blocs)
2020

21-
Pdirs := Base Boundary AmrCore Amr Particle
21+
Pdirs := Base Boundary AmrCore Amr
22+
ifeq ($(USE_PARTICLES),TRUE)
23+
Pdirs += Particle
24+
endif
2225
Ppack += $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
2326

2427
include $(Ppack)

0 commit comments

Comments
 (0)