Ignore:
Timestamp:
01/31/19 07:34:11 (6 years ago)
Author:
bdef
Message:

CHG: python scripts after 2to3 and indentation fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/py3/solvers/issmmumpssolver.py

    r19895 r23670  
     1from collections import OrderedDict
    12import pairoptions
    23
    3 def issmmumpssolver(**kwargs):
     4def issmmumpssolver(*args):
    45        #ISSMSOLVE - return issm solver options
    56        #
     
    89       
    910        #retrieve options provided in varargin
    10         arguments=pairoptions.pairoptions(**kwargs)
     11        arguments=pairoptions.pairoptions(*args)
    1112       
    12         options=[['toolkit','issm'],['mat_type','mpidense'],['vec_type','mpi'],['solver_type','mumps']];
     13        options=OrderedDict()
     14        options['toolkit'] = 'issm'
     15        options['mat_type'] = 'mpidense'
     16        options['vec_type'] = 'mpi'
     17        options['solver_type'] = 'mumps'
    1318
    1419        #now, go through our arguments, and write over default options.
Note: See TracChangeset for help on using the changeset viewer.