Changeset 17790 for issm/trunk-jpl/src/m/solve/solve.py
- Timestamp:
- 04/21/14 15:33:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solve/solve.py
r17782 r17790 25 25 - ThermalSolutionEnum 26 26 - SteadystateSolutionEnum 27 - TransientSolutionEnum ...27 - TransientSolutionEnum 28 28 - BalancethicknessSolutionEnum 29 29 - BedSlopeSolutionEnum … … 40 40 41 41 #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) 44 45 45 46 #recover some fields 46 md.private.solution= options['solution_type']47 md.private.solution=solutionenum 47 48 cluster=md.cluster 48 49 … … 68 69 69 70 #flaim analysis 70 if options['solution_type']== FlaimSolutionEnum():71 if solutionenum == FlaimSolutionEnum(): 71 72 md=flaim_sol(md,options) 72 [md.private.solution]=EnumToString( options['solution_type'])73 [md.private.solution]=EnumToString(solutionenum) 73 74 return md 74 75 75 76 #Do we load results only? 76 if options ['loadonly']:77 if options.getfieldvalue('loadonly',False): 77 78 md=loadresultsfromcluster(md) 78 79 return md … … 84 85 85 86 #Stop here if batch mode 86 if m.strcmpi(options ['batch'],'yes'):87 if m.strcmpi(options.getfieldvalue('batch','no'),'yes'): 87 88 print 'batch mode requested: not launching job interactively' 88 89 print 'launch solution sequence on remote cluster by hand' … … 112 113 113 114 return md 114
Note:
See TracChangeset
for help on using the changeset viewer.