Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix - Creating pcg parallel directory #297

Merged
merged 9 commits into from
Jul 17, 2023
1 change: 1 addition & 0 deletions examples/sunlinsol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ endif()
target_link_libraries(test_sunlinsol_obj PRIVATE sundials_sunlinsoldense)

if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(pcg/parallel)
add_subdirectory(spgmr/parallel)
add_subdirectory(spfgmr/parallel)
add_subdirectory(spbcgs/parallel)
Expand Down
11 changes: 10 additions & 1 deletion examples/sunlinsol/pcg/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@
# CMakeLists.txt file for sunlinsol PCG examples
# ---------------------------------------------------------------

# Set tolerance for linear solver test based on Sundials precision
if(SUNDIALS_PRECISION MATCHES "SINGLE")
set(TOL "1e-2")
elseif(SUNDIALS_PRECISION MATCHES "DOUBLE")
set(TOL "1e-13")
gardner48 marked this conversation as resolved.
Show resolved Hide resolved
else()
set(TOL "1e-16")
endif()

# Example lists are tuples "name\;args\;nodes\;tasks\;type" where the
# type is develop for examples excluded from 'make test' in releases

# Examples using the SUNDIALS PCG linear solver
set(sunlinsol_pcg_examples
"test_sunlinsol_pcg_parallel\;100 100 1e-3 0\;1\;4\;"
"test_sunlinsol_pcg_parallel\;100 100 ${TOL} 0\;1\;4\;"
)

# Dependencies for nvector examples
Expand Down
Loading