Changeset 6855
- Timestamp:
- 12/29/10 18:17:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/solvers/mumpsoptions.m
r6005 r6855 4 4 % Usage: 5 5 % options=mumpsoptions; 6 6 7 global PETSC_VERSION 8 7 9 %retrieve options provided in varargin 8 10 arguments=pairoptions(varargin{:}); 9 11 10 12 %default mumps options 11 options={{'mat_type','aijmumps'},{'ksp_type','preonly'},{'pc_type','lu'},{'mat_mumps_icntl_14',120},{'pc_factor_shift_positive_definite','true'}}; 13 if PETSC_VERSION==2, 14 options={{'mat_type','aijmumps'},{'ksp_type','preonly'},{'pc_type','lu'},{'mat_mumps_icntl_14',120},{'pc_factor_shift_positive_definite','true'}}; 15 end 16 if PETSC_VERSION==3, 17 options={{'mat_type','mpidense'},{'ksp_type','preonly'},{'pc_type','lu'},{'mat_mumps_icntl_14',120},{'pc_factor_shift_positive_definite','true'}}; 18 end 12 19 13 20 %now, go through our arguments, and write over default options.
Note:
See TracChangeset
for help on using the changeset viewer.