Skip to content

Commit

Permalink
Merge pull request #70 from NexGenAnalytics/55-belos-add-minres-and-p…
Browse files Browse the repository at this point in the history
…cpg-tpetra-tests

#55: Belos: Add MINRES tpetra test
  • Loading branch information
stmcgovern authored Sep 8, 2023
2 parents f9116d7 + 5093f4f commit fcfdbe7
Show file tree
Hide file tree
Showing 6 changed files with 1,370 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/belos/tpetra/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ADD_SUBDIRECTORY(BiCGStab)
ADD_SUBDIRECTORY(BlockCG)
ADD_SUBDIRECTORY(BlockGmres)
ADD_SUBDIRECTORY(TFQMR)
ADD_SUBDIRECTORY(MINRES)
ADD_SUBDIRECTORY(FixedPoint)
ADD_SUBDIRECTORY(LinearSolverFactory)
ADD_SUBDIRECTORY(MultipleSolves)
Expand Down
46 changes: 46 additions & 0 deletions packages/belos/tpetra/test/MINRES/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
TRIBITS_ADD_EXECUTABLE_AND_TEST(
Tpetra_minres_diag
SOURCES test_minres_diag.cpp
COMM serial mpi
STANDARD_PASS_OUTPUT
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(
Tpetra_minres_indefinite
SOURCES test_minres_indefinite.cpp
COMM serial mpi
ARGS
"--debug --verbose --tol=1e-5"
STANDARD_PASS_OUTPUT
)

ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_Triutils)
IF (${PACKAGE_NAME}_ENABLE_Triutils)
TRIBITS_ADD_EXECUTABLE_AND_TEST(
Tpetra_minres_hb
SOURCES test_minres_hb.cpp
COMM serial mpi
ARGS
"--verbose --filename=bcsstk14.hb --tol=1e-5"
"--verbose --filename=bcsstk14.hb --num-rhs=2 --tol=1e-5"
STANDARD_PASS_OUTPUT
)

ASSERT_DEFINED(Anasazi_SOURCE_DIR)
TRIBITS_COPY_FILES_TO_BINARY_DIR(Tpetra_CopyTestMinresFiles
SOURCE_DIR ${Anasazi_SOURCE_DIR}/testmatrices
SOURCE_FILES bcsstk14.hb
EXEDEPS Tpetra_minres_hb
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(
Tpetra_pminres_hb
SOURCES test_pminres_hb.cpp
COMM serial mpi
ARGS
"--verbose --filename=bcsstk14.hb --left-prec --max-iters=100"
"--verbose --filename=bcsstk14.hb --right-prec --max-iters=100"
STANDARD_PASS_OUTPUT
)

ENDIF(${PACKAGE_NAME}_ENABLE_Triutils)
Loading

0 comments on commit fcfdbe7

Please sign in to comment.