Changeset 26383


Ignore:
Timestamp:
08/05/21 13:49:48 (4 years ago)
Author:
schlegel
Message:

CHG: asmoptions needs to return a dictionary object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solvers/asmoptions.py

    r25246 r26383  
     1from collections import OrderedDict
    12from pairoptions import pairoptions
    2 
    33
    44def asmoptions(*args):
     
    3535            #this option did not exist, add it:
    3636            options.append([arg1, arg2])
    37     return options
     37
     38    asmoptions = OrderedDict()
     39    for j in range(len(options)):
     40        asmoptions[options[j][0]]=options[j][1]
     41
     42    return asmoptions
Note: See TracChangeset for help on using the changeset viewer.