Changeset 11466
- Timestamp:
- 02/17/12 12:01:12 (13 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp
r11465 r11466 108 108 #endif 109 109 /*}}}*/ 110 /*Check the solver is available: {{{1*/ 111 if(solver_type==MUMPSPACKAGE_LU || solver_type==MUMPSPACKAGE_CHOL){ 112 #if _PETSC_MAJOR_ >=3 113 #ifndef _HAVE_MUMPS_ 114 _error_("requested MUMPS solver, which was not compiled into ISSM!\n"); 115 #endif 116 117 #endif 118 } 119 /*}}}*/ 110 120 /*Prepare solver:{{{1*/ 111 121 KSPCreate(MPI_COMM_WORLD,&ksp); -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscOptionsDetermineSolverType.cpp
r9826 r11466 49 49 solver_type=SUPERLUDISTPACKAGE; 50 50 } 51 if (strcmp(option,"")==0){ 52 solver_type=SUPERLUDISTPACKAGE; 53 } 54 55 56 #if _PETSC_MAJOR_ >= 3 57 PetscOptionsGetString(PETSC_NULL,"-pc_factor_mat_solver_package",&option[0],100,&flag); 58 if (strcmp(option,"mumps")==0){ 59 solver_type=MUMPSPACKAGE_LU; 60 } 61 #endif 62 51 63 52 64 PetscOptionsGetString(PETSC_NULL,"-issm_option_solver",&option[0],100,&flag); -
issm/trunk-jpl/src/m/classes/model/model.m
r11139 r11466 404 404 md.settings = settings(); 405 405 md.solver = solver(); 406 md.solver = addoptions(md.solver,DiagnosticVertAnalysisEnum,mumpsoptions); 406 if ismumps, 407 md.solver = addoptions(md.solver,DiagnosticVertAnalysisEnum,mumpsoptions); 408 else 409 md.solver = addoptions(md.solver,DiagnosticVertAnalysisEnum,iluasmoptions); 410 end 407 411 md.cluster = none(); 408 412 md.balancethickness = balancethickness(); -
issm/trunk-jpl/src/m/classes/solver.m
r11389 r11466 27 27 28 28 %MUMPS is the default solver 29 obj.options={'NoneAnalysis',mumpsoptions}; 29 if ismumps, 30 obj.options={'NoneAnalysis',mumpsoptions}; 31 else 32 obj.options={'NoneAnalysis',iluasmoptions}; 33 end 30 34 31 35 end % }}}
Note:
See TracChangeset
for help on using the changeset viewer.