Skip to content

abodado/linearSolverTpetraMueLuBelos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

linearSolverTpetraMueLuBelos

Solve linear system using Trilinos Tpetra, MueLu, and Belos

This code uses Trilinos libraries and functions to read a system matrix A.mtx, RHS b.mtx, and initial Soln vector x.mtx (in MatrixMarket format) supplied by the user and then solves the system using Belos with MueLu as the preconditioner. This code will read an xml file of preconditioner settings (if it exists in running directory) to investigate the optimal settings for my linear system. I have a separate repository that uses Epetra, MueLu, and AztecOO so that one can compare the performance of the solvers.

The code uses Trilinos v16.0.0 (downloaded from the Trilinos repository). I have included the Trilinos build script as buildTrilinos.sh

The order of libraries to link can be tricky. First I have some system libraries, followed by the Trilinos libraries, and then lapack, blas, and mpi.

LIBS = -L../../usr/lib64
-L/usr/lib64
-L$${MPIPATH}/lib
-lGL -lGLU -lqsa -lmpi -lgfortran
-L$${TRILINOSDIR}/lib64 -lmuelu -lmuelu-adapters
-lbelosxpetra -lbelostpetra -lbelos -lpamgen_extras
-lpamgen -lgaleri-xpetra
-lintrepid2 -lshards -lsacado -lteko -lanasazitpetra
-lanasazi -lstratimikos -lstratimikosbelos
-lstratimikosamesos2
-lifpack2-adapters -lifpack2
-lbelosxpetra -lbelostpetra -lbelos
-lamesos2 -ltacho -lzoltan2
-ltrilinosss -lxpetra-sup -lxpetra
-lthyratpetra -lthyracore -lrtop
-ltpetraext -ltpetrainout -ltpetra -lkokkostsqr
-ltpetraclassic
-lzoltan -lkokkoskernels -lkokkosalgorithms
-lkokkoscore -lteuchoskokkoscomm -lteuchoskokkoscompat
-lteuchosremainder -lteuchosnumerics -lteuchoscomm -lteuchosparameterlist
-lteuchosparser -lteuchoscore -lkokkoscontainers -lkokkoscore -llapack
-lblas -lmpi

About

Solve linear system using Trilinos Tpetra, MueLu, and Belos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published