-
- Downloads
Plug PETSc (and various classic solvers and preconditioners)
The 'LinearSolver' class proposes mechanism to choose the used - library, - method, and - preconditioner Also one can adjust the required convergence epsilon, the maximum number of iterations and the verbosity. All of these options can be listed through the 'pgs' script using the 'printLSAvailable()' builtin function. One drive the linear system solver by changing values in the script. For instance: setLSVerbosity(true); setLSEpsilon(1E-9); setLSMaxIter(1000); setLSLibrary("PETSc"); setLSMethod("LU"); setLSPrecond("none"); Finally one can print the current options by using the 'printLSOptions()' function.
Showing
- CMakeLists.txt 20 additions, 4 deletionsCMakeLists.txt
- src/algebra/BiCGStab.hpp 15 additions, 11 deletionssrc/algebra/BiCGStab.hpp
- src/algebra/CG.hpp 20 additions, 20 deletionssrc/algebra/CG.hpp
- src/algebra/CMakeLists.txt 2 additions, 1 deletionsrc/algebra/CMakeLists.txt
- src/algebra/CRSMatrix.hpp 14 additions, 1 deletionsrc/algebra/CRSMatrix.hpp
- src/algebra/LinearSolver.cpp 320 additions, 0 deletionssrc/algebra/LinearSolver.cpp
- src/algebra/LinearSolver.hpp 36 additions, 0 deletionssrc/algebra/LinearSolver.hpp
- src/algebra/LinearSolverOptions.cpp 15 additions, 0 deletionssrc/algebra/LinearSolverOptions.cpp
- src/algebra/LinearSolverOptions.hpp 233 additions, 0 deletionssrc/algebra/LinearSolverOptions.hpp
- src/algebra/PETScWrapper.cpp 1 addition, 0 deletionssrc/algebra/PETScWrapper.cpp
- src/algebra/SparseMatrixDescriptor.hpp 6 additions, 1 deletionsrc/algebra/SparseMatrixDescriptor.hpp
- src/language/ast/ASTNodeDataType.cpp 8 additions, 4 deletionssrc/language/ast/ASTNodeDataType.cpp
- src/language/modules/CMakeLists.txt 1 addition, 0 deletionssrc/language/modules/CMakeLists.txt
- src/language/modules/LinearSolverModule.cpp 85 additions, 0 deletionssrc/language/modules/LinearSolverModule.cpp
- src/language/modules/LinearSolverModule.hpp 19 additions, 0 deletionssrc/language/modules/LinearSolverModule.hpp
- src/language/modules/ModuleRepository.cpp 2 additions, 0 deletionssrc/language/modules/ModuleRepository.cpp
- tests/CMakeLists.txt 4 additions, 2 deletionstests/CMakeLists.txt
- tests/test_BiCGStab.cpp 2 additions, 2 deletionstests/test_BiCGStab.cpp
- tests/test_CG.cpp 5 additions, 5 deletionstests/test_CG.cpp
- tests/test_SparseMatrixDescriptor.cpp 7 additions, 7 deletionstests/test_SparseMatrixDescriptor.cpp
Loading
Please register or sign in to comment