Changeset 6858 for issm/trunk/src/c/modules/Solverx/Solverx.cpp
- Timestamp:
- 12/29/10 18:46:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/Solverx/Solverx.cpp
r6852 r6858 32 32 33 33 #if _PETSC_VERSION_ == 3 34 const MatType type; 34 char ksp_type[50]; 35 PetscTruth flg; 35 36 #endif 36 37 … … 47 48 /*Now, check that we are not getting an initial guess to the solver, if we are running a direct solver: */ 48 49 #if _PETSC_VERSION_ == 3 49 MatGetType(Kff,&type);50 if (strcmp( type,"mpidense")==0)uf0=NULL;50 PetscOptionsGetString(PETSC_NULL,"-ksp_type",ksp_type,49,&flg); 51 if (strcmp(ksp_type,"preonly")==0)uf0=NULL; 51 52 #endif 52 53
Note:
See TracChangeset
for help on using the changeset viewer.