Ignore:
Timestamp:
04/21/14 15:33:50 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removed process_solve_options

File:
1 edited

Legend:

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

    r17782 r17790  
    2525              - ThermalSolutionEnum
    2626              - SteadystateSolutionEnum
    27               - TransientSolutionEnum...
     27              - TransientSolutionEnum
    2828              - BalancethicknessSolutionEnum
    2929              - BedSlopeSolutionEnum
     
    4040
    4141        #recover and process solve options
    42         options=pairoptions('solution_type',solutionenum,*args)
    43         options=process_solve_options(options)
     42        if EnumToString(solutionenum)[0][-8:] != 'Solution':
     43                raise ValueError("solutionenum '%s' not supported!" % EnumToString(solutionenum)[0])
     44        options=pairoptions('solutionenum',solutionenum,*args)
    4445
    4546        #recover some fields
    46         md.private.solution=options['solution_type']
     47        md.private.solution=solutionenum
    4748        cluster=md.cluster
    4849
     
    6869
    6970        #flaim analysis
    70         if options['solution_type'] == FlaimSolutionEnum():
     71        if solutionenum == FlaimSolutionEnum():
    7172                md=flaim_sol(md,options)
    72                 [md.private.solution]=EnumToString(options['solution_type'])
     73                [md.private.solution]=EnumToString(solutionenum)
    7374                return md
    7475
    7576        #Do we load results only?
    76         if options['loadonly']: 
     77        if options.getfieldvalue('loadonly',False):
    7778                md=loadresultsfromcluster(md)
    7879                return md
     
    8485
    8586        #Stop here if batch mode
    86         if m.strcmpi(options['batch'],'yes'):
     87        if m.strcmpi(options.getfieldvalue('batch','no'),'yes'):
    8788                print 'batch mode requested: not launching job interactively'
    8889                print 'launch solution sequence on remote cluster by hand'
     
    112113
    113114        return md
    114 
Note: See TracChangeset for help on using the changeset viewer.