Changeset 6855


Ignore:
Timestamp:
12/29/10 18:17:07 (14 years ago)
Author:
Eric.Larour
Message:

different mumps options for petsc version 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/solvers/mumpsoptions.m

    r6005 r6855  
    44%   Usage:
    55%      options=mumpsoptions;
    6                          
     6
     7global PETSC_VERSION
     8
    79%retrieve options provided in varargin
    810arguments=pairoptions(varargin{:});
    911
    1012%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'}};
     13if 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'}};
     15end
     16if PETSC_VERSION==3,
     17options={{'mat_type','mpidense'},{'ksp_type','preonly'},{'pc_type','lu'},{'mat_mumps_icntl_14',120},{'pc_factor_shift_positive_definite','true'}};
     18end
    1219
    1320%now, go through our arguments, and write over default options.
Note: See TracChangeset for help on using the changeset viewer.