 |
Ice Sheet System Model
4.18
Code documentation
|
Go to the documentation of this file.
4 #ifndef _SOLVER_CLASS_H_
5 #define _SOLVER_CLASS_H_
11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
15 #include "../issm/issmtoolkit.h"
16 #include "../petsc/petscincludes.h"
19 template <
class doubletype>
45 this->parameters=parameters_in;
67 if(
uf0) uf0_vector =
uf0->pvector;
68 if(
df) df_vector =
df->pvector;
78 _error_(
"Matrix type: " <<
Kff->type <<
" not supported yet!");
86 #endif //#ifndef _SOLVER_H_
Matrix< doubletype > * Kff
wrapper to vector objects. The goal is to control which API (PETSc,Scalpack, Plapack?...
Declaration of Parameters class.
void PetscSolve(PetscVec **puf, PetscMat *Kff, PetscVec *pf, PetscVec *uf0, PetscVec *df, Parameters *parameters)
wrapper to matrix objects. The goal is to control which API (PETSc,Scalpack, Plapack?...
Vector< doubletype > * uf0
Vector< doubletype > * df
Vector< doubletype > * pf
Vector< doubletype > * Solve(void)
#define _error_(StreamArgs)
IssmVec< doubletype > * ivector
void IssmSolve(IssmVec< IssmDouble > **pout, IssmMat< IssmDouble > *Kff, IssmVec< IssmDouble > *pf, Parameters *parameters)
Solver(Matrix< doubletype > *Kff_in, Vector< doubletype > *pf_in, Vector< doubletype > *uf0_in, Vector< doubletype > *df_in, Parameters *parameters_in)