19#ifndef __PASO_SOLVER_H__
20#define __PASO_SOLVER_H__
29#define TOLERANCE_FOR_SCALARS (double)(0.)
36SolverResult Solver(SystemMatrix_ptr<double>,
double*,
double*, Options*, Performance*);
39SolverResult Solver(SystemMatrix_ptr<cplx_t>, cplx_t*, cplx_t*, Options*, Performance*);
43 dim_t* iter,
double* tolerance, Performance* pp);
46 double* tolerance, Performance* pp);
49 double* tolerance, Performance* pp);
52 dim_t* iter,
double* tolerance, Performance* pp);
55 dim_t* num_iter,
double* tolerance,
56 dim_t length_of_recursion, dim_t restart,
60 double* x, dim_t* iter,
double* tolerance,
75struct Preconditioner_Smoother;
#define PASO_SMOOTHER
Definition Options.h:75
#define PASO_MUMPS
Definition Options.h:57
#define PASO_UMFPACK
Definition Options.h:51
#define PASO_PASO
Definition Options.h:56
#define PASO_MKL
Definition Options.h:50
this class holds a (distributed) stiffness matrix
Definition SystemMatrix.h:50
void * solver_p
pointer to data needed by a solver
Definition SystemMatrix.h:353
index_t solver_package
package code controlling the solver pointer
Definition SystemMatrix.h:350
SparseMatrix_ptr< T > mainBlock
main block
Definition SystemMatrix.h:329
Definition BiCGStab.cpp:25
SolverResult Solver_PCG(SystemMatrix_ptr< double > A, double *r, double *x, dim_t *iter, double *tolerance, Performance *pp)
Definition PCG.cpp:62
void Solver_free(SystemMatrix< double > *A)
Definition Solver.cpp:40
SolverResult Solver_TFQMR(SystemMatrix_ptr< double > A, double *B, double *X, dim_t *iter, double *tolerance, Performance *pp)
Definition TFQMR.cpp:62
SolverResult Solver(SystemMatrix_ptr< double > A, double *x, double *b, Options *options, Performance *pp)
calls the iterative solver
Definition Solver.cpp:46
void Preconditioner_Smoother_free(Preconditioner_Smoother *in)
Definition Smoother.cpp:34
SolverResult Solver_GMRES(SystemMatrix_ptr< double > A, double *r, double *x, dim_t *iter, double *tolerance, dim_t Length_of_recursion, dim_t restart, Performance *pp)
Definition GMRES.cpp:68
void UMFPACK_free(SparseMatrix< double > *A)
frees any UMFPACK related data from the matrix
Definition UMFPACK.cpp:35
void solve_free(SystemMatrix< T > *A)
Definition Solver.h:79
SolverResult
Definition Paso.h:44
SolverResult Solver_MINRES(SystemMatrix_ptr< double > A, double *R, double *X, dim_t *iter, double *tolerance, Performance *pp)
Definition MINRES.cpp:59
SolverResult Solver_BiCGStab(SystemMatrix_ptr< double > A, double *r, double *x, dim_t *iter, double *tolerance, Performance *pp)
Definition BiCGStab.cpp:77
void MUMPS_free(SparseMatrix< T > *A)
frees any MUMPS related data from the matrix
Definition MUMPS.h:118
void MKL_free(SparseMatrix< double > *A)
Definition MKL.cpp:35
SolverResult Solver_GMRES2(Function *F, const double *f0, const double *x0, double *dx, dim_t *iter, double *tolerance, Performance *pp)
Definition GMRES2.cpp:24
SolverResult Solver_NewtonGMRES(Function *F, double *x, Options *options, Performance *pp)
Definition NewtonGMRES.cpp:43
#define PASO_DLL_API
Definition paso/src/system_dep.h:29
Definition Preconditioner.h:65