Changeset 17782 for issm/trunk-jpl/src/m/solve/process_solve_options.py
- Timestamp:
- 04/20/14 09:20:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solve/process_solve_options.py
r17392 r17782 18 18 #solution_type: check on this option, error out otherwise 19 19 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]) 26 22 outoptions['solution_type']=solution_type 27 28 outoptions['upload']=options.getfieldvalue('upload','off')29 23 outoptions['batch']=options.getfieldvalue('batch','no') 30 24 outoptions['loadonly']=options.getfieldvalue('loadonly',False) 31 outoptions['directory']=options.getfieldvalue('directory','')32 25 33 26 # process qmu arguments
Note:
See TracChangeset
for help on using the changeset viewer.