Ignore:
Timestamp:
04/20/14 09:20:23 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: simplifying solve options

File:
1 edited

Legend:

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

    r17392 r17782  
    1818        #solution_type: check on this option, error out otherwise
    1919        solution_type=options.getfieldvalue('solution_type')
    20         if solution_type not in (StressbalanceSolutionEnum(),MasstransportSolutionEnum(),ThermalSolutionEnum(),\
    21                         SteadystateSolutionEnum(),TransientSolutionEnum(),\
    22                         BalancethicknessSolutionEnum(),BalancevelocitySolutionEnum(),\
    23                         BedSlopeSolutionEnum(),SurfaceSlopeSolutionEnum(),\
    24                         HydrologySolutionEnum(),FlaimSolutionEnum(),GiaSolutionEnum(),DamageEvolutionSolutionEnum()):
    25                 raise ValueError("process_solve_options error message: solution_type '%s' not supported yet!" % EnumToString(solution_type)[0])
     20        if EnumToString(solution_type)[0][-8:] != 'Solution':
     21                raise ValueError("solution_type '%s' not supported!" % EnumToString(solution_type)[0])
    2622        outoptions['solution_type']=solution_type
    27 
    28         outoptions['upload']=options.getfieldvalue('upload','off')
    2923        outoptions['batch']=options.getfieldvalue('batch','no')
    3024        outoptions['loadonly']=options.getfieldvalue('loadonly',False)
    31         outoptions['directory']=options.getfieldvalue('directory','')
    3225
    3326        #  process qmu arguments
Note: See TracChangeset for help on using the changeset viewer.