Skip to content

Commit

Permalink
Teko: Examples with Epetra=OFF
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Dec 17, 2024
1 parent 0a2e07f commit 6517be9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
4 changes: 1 addition & 3 deletions packages/teko/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ ENDIF()
ADD_SUBDIRECTORY(src)

TRIBITS_ADD_TEST_DIRECTORIES(tests)
IF(TEKO_HAVE_EPETRA)
TRIBITS_ADD_EXAMPLE_DIRECTORIES(examples)
ENDIF()
TRIBITS_ADD_EXAMPLE_DIRECTORIES(examples)

TRIBITS_EXCLUDE_FILES(
tests/data/nsjac.mm
Expand Down
14 changes: 8 additions & 6 deletions packages/teko/examples/BuildPreconditioner/step1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
IF (TEKO_ENABLE_EPETRA)

TRIBITS_ADD_EXECUTABLE(
BuilderPreconditioner_Step1_Example
SOURCES
example-test.cpp
COMM mpi
)
TRIBITS_ADD_EXECUTABLE(
BuilderPreconditioner_Step1_Example
SOURCES
example-test.cpp
COMM mpi
)
ENDIF()
41 changes: 22 additions & 19 deletions packages/teko/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
ADD_SUBDIRECTORY(StridedSolve)
ADD_SUBDIRECTORY(AddMultiplyPrecs)
ADD_SUBDIRECTORY(BuildPreconditioner)
ADD_SUBDIRECTORY(BasicExamples)
IF (TEKO_ENABLE_EPETRA)
ADD_SUBDIRECTORY(StridedSolve)
ADD_SUBDIRECTORY(AddMultiplyPrecs)
ADD_SUBDIRECTORY(BasicExamples)

IF (ML_ENABLE_TekoSmoothers)
ADD_SUBDIRECTORY(ML-Teko-Coupling)
ENDIF()

TRIBITS_COPY_FILES_TO_BINARY_DIR(example_copyfiles
SOURCE_FILES nslhs_test.mm
nsrhs_test.mm
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data"
DEST_DIR "${CMAKE_CURRENT_BINARY_DIR}/data"
EXEDEPS StridedSolve_Example
)

IF(${PROJECT_NAME}_ENABLE_DEVELOPMENT_MODE)
TRIBITS_COPY_FILES_TO_BINARY_DIR(example_copyfiles_from_tests
SOURCE_FILES nsjac.mm
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tests/data"
TRIBITS_COPY_FILES_TO_BINARY_DIR(example_copyfiles
SOURCE_FILES nslhs_test.mm
nsrhs_test.mm
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data"
DEST_DIR "${CMAKE_CURRENT_BINARY_DIR}/data"
EXEDEPS StridedSolve_Example
)

IF(${PROJECT_NAME}_ENABLE_DEVELOPMENT_MODE)
TRIBITS_COPY_FILES_TO_BINARY_DIR(example_copyfiles_from_tests
SOURCE_FILES nsjac.mm
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tests/data"
DEST_DIR "${CMAKE_CURRENT_BINARY_DIR}/data"
EXEDEPS StridedSolve_Example
)
ENDIF()

ENDIF()

IF (ML_ENABLE_TekoSmoothers)
ADD_SUBDIRECTORY(ML-Teko-Coupling)
ENDIF()

0 comments on commit 6517be9

Please sign in to comment.