Changeset 17782
- Timestamp:
- 04/20/14 09:20:23 (11 years ago)
- Location:
- issm/trunk-jpl/src/m/solve
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solve/process_solve_options.m
r17381 r17782 9 9 %solution_type: check on this option, error out otherwise 10 10 solution_type=getfieldvalue(options,'solution_type'); 11 if ~ismember(solution_type,[StressbalanceSolutionEnum(),MasstransportSolutionEnum(),ThermalSolutionEnum(),... 12 SteadystateSolutionEnum(),TransientSolutionEnum(),... 13 BalancethicknessSolutionEnum(),BalancethicknessSoftSolutionEnum(),... 14 BalancevelocitySolutionEnum(),BedSlopeSolutionEnum(),... 15 SurfaceSlopeSolutionEnum(),HydrologySolutionEnum(),FlaimSolutionEnum(),GiaSolutionEnum(),DamageEvolutionSolutionEnum()]), 16 error(['process_solve_options error message: solution_type ' EnumToString(solution_type) ' not supported yet!']); 11 if ~strncmp(fliplr(EnumToString(solution_type)),fliplr('Solution'),9), 12 error(['solution_type ' EnumToString(solution_type) ' not supported!']); 17 13 end 18 14 outoptions.solution_type=solution_type; 19 20 15 outoptions.runtimename=getfieldvalue(options,'runtimename',true); 21 outoptions.upload=getfieldvalue(options,'upload','off');22 16 outoptions.batch=getfieldvalue(options,'batch','no'); 23 17 outoptions.loadonly=getfieldvalue(options,'loadonly',false); 24 outoptions.directory=getfieldvalue(options,'directory','');25 18 26 19 % process qmu arguments -
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 -
issm/trunk-jpl/src/m/solve/solve.m
r17381 r17782 103 103 LaunchQueueJob(cluster,md.miscellaneous.name,md.private.runtimename,filelist); 104 104 105 %did we even try to run? if so, wait on lock106 if strcmpi(options.upload,'on'),107 if md.verbose.solution,108 disp('solve done uploading test decks');109 end110 return;111 end112 113 105 %wait on lock 114 106 if isnan(md.settings.waitonlock), -
issm/trunk-jpl/src/m/solve/solve.py
r17480 r17782 96 96 cluster.LaunchQueueJob(md.miscellaneous.name,md.private.runtimename,filelist) 97 97 98 #did we even try to run? if so, wait on lock99 if m.strcmpi(options['upload'],'on'):100 print 'solve done uploading test decks'101 return md102 103 98 #wait on lock 104 99 if md.settings.waitonlock>0:
Note:
See TracChangeset
for help on using the changeset viewer.