- Timestamp:
- 06/07/17 10:50:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/solve/solve.py
r21097 r21759 7 7 from waitonlock import waitonlock 8 8 from loadresultsfromcluster import loadresultsfromcluster 9 import MatlabFuncs as m10 9 11 10 def solve(md,solutionstring,*args): … … 76 75 md.private.solution=solutionstring 77 76 cluster=md.cluster 78 if m.strcmpi(options.getfieldvalue('batch','no'),'yes'):77 if options.getfieldvalue('batch','no')=='yes': 79 78 batch=1 80 79 else: … … 82 81 83 82 #check model consistency 84 if m.strcmpi(options.getfieldvalue('checkconsistency','yes'),'yes'):83 if options.getfieldvalue('checkconsistency','yes')=='yes': 85 84 print "checking model consistency" 86 85 ismodelselfconsistent(md) … … 114 113 marshall(md) # bin file 115 114 md.toolkits.ToolkitsFile(md.miscellaneous.name+'.toolkits') # toolkits file 116 cluster.BuildQueueScript(md.private.runtimename,md.miscellaneous.name,md.private.solution,md.settings.io_gather,md.debug.valgrind,md.debug.gprof,md.qmu.isdakota ) # queue file115 cluster.BuildQueueScript(md.private.runtimename,md.miscellaneous.name,md.private.solution,md.settings.io_gather,md.debug.valgrind,md.debug.gprof,md.qmu.isdakota,md.transient.isoceancoupling) # queue file 117 116 118 117 #Stop here if batch mode 119 if m.strcmpi(options.getfieldvalue('batch','no'),'yes'):118 if options.getfieldvalue('batch','no')=='yes': 120 119 print 'batch mode requested: not launching job interactively' 121 120 print 'launch solution sequence on remote cluster by hand'
Note:
See TracChangeset
for help on using the changeset viewer.