Skip to content

Commit

Permalink
Disable some tests if AMReX_AMRLEVEL is not on
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 4, 2024
1 parent 3e56780 commit d933b7e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Amr/Advection_AmrLevel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (NOT AMReX_AMRLEVEL)
return()
endif ()

foreach(D IN LISTS AMReX_SPACEDIM)
if (D EQUAL 1)
continue()
Expand Down
4 changes: 4 additions & 0 deletions Tests/EB/CNS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (NOT AMReX_AMRLEVEL)
return()
endif ()

if (NOT (3 IN_LIST AMReX_SPACEDIM) OR NOT CMAKE_Fortran_COMPILER_LOADED)
return()
endif ()
Expand Down
4 changes: 4 additions & 0 deletions Tests/EB_CNS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (NOT AMReX_AMRLEVEL)
return()
endif ()

foreach(D IN LISTS AMReX_SPACEDIM)
set(_sources main.cpp CNS_advance.cpp CNS_advance_box.cpp CNS_advance_box_eb.cpp CNS_bcfill.cpp
CNSBld.cpp CNS.cpp CNS.H CNS_derive.cpp CNS_derive.H CNS_index_macros.H CNS_init_eb2.cpp CNS_io.cpp
Expand Down
4 changes: 4 additions & 0 deletions Tests/GPU/CNS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (NOT AMReX_AMRLEVEL)
return()
endif ()

if (NOT 3 IN_LIST AMReX_SPACEDIM)
return()
endif ()
Expand Down

0 comments on commit d933b7e

Please sign in to comment.