Skip to content

Commit

Permalink
Merge pull request #12322 from NexGenAnalytics/nga-fy23-pr-candidate-39
Browse files Browse the repository at this point in the history
Belos: add `Tpetra` MINRES tests
  • Loading branch information
hkthorn authored Sep 27, 2023
2 parents bc477b0 + 60c972a commit 8f2db99
Show file tree
Hide file tree
Showing 5 changed files with 1,044 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(MultiMatrixSolve)
Expand Down
32 changes: 32 additions & 0 deletions packages/belos/tpetra/test/MINRES/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
)

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
)
Loading

0 comments on commit 8f2db99

Please sign in to comment.