Changeset 21576
- Timestamp:
- 02/28/17 16:12:12 (8 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/acenet.m
r21050 r21576 56 56 end 57 57 %}}} 58 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{58 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 59 59 60 60 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/camhpc.m
r21305 r21576 71 71 end 72 72 %}}} 73 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{73 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 74 74 75 75 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/castor.m
r21050 r21576 46 46 end 47 47 %}}} 48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 49 49 50 50 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/cloud.m
r21050 r21576 48 48 end 49 49 %}}} 50 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{50 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 51 51 52 52 %write queuing script -
issm/trunk-jpl/src/m/classes/clusters/cosmos.m
r21050 r21576 46 46 end 47 47 %}}} 48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 49 49 50 50 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/cyclone.py
r21050 r21576 72 72 return self 73 73 # }}} 74 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ):74 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling): 75 75 # {{{ 76 76 -
issm/trunk-jpl/src/m/classes/clusters/discover.m
r21050 r21576 90 90 end 91 91 %}}} 92 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{92 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,ioceancoupling) % {{{ 93 93 94 94 if(isgprof), disp('gprof not supported by cluster, ignoring...'); end … … 100 100 executable='issm_dakota.exe'; 101 101 end 102 end 103 if isoceancoupling, 104 executable='issm_ocean.exe'; 102 105 end 103 106 -
issm/trunk-jpl/src/m/classes/clusters/gemini.m
r21050 r21576 46 46 end 47 47 %}}} 48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 49 49 50 50 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/generic.m
r21050 r21576 72 72 end 73 73 %}}} 74 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{74 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 75 75 76 76 %write queuing script … … 82 82 executable='issm_dakota.exe'; 83 83 end 84 end 85 if isoceancoupling, 86 executable='issm_ocean.exe'; 84 87 end 85 88 -
issm/trunk-jpl/src/m/classes/clusters/generic.py
r21410 r21576 68 68 return md 69 69 # }}} 70 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ): # {{{70 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling): # {{{ 71 71 72 72 executable='issm.exe'; … … 76 76 if version>=6: 77 77 executable='issm_dakota.exe' 78 if isoceancoupling: 79 executable='issm_ocean.exe' 78 80 79 81 #write queuing script -
issm/trunk-jpl/src/m/classes/clusters/generic_static.m
r21050 r21576 49 49 end 50 50 %}}} 51 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{51 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 52 52 53 53 %Check that issm.exe exists in the right path … … 67 67 executable='issm_dakota.exe'; 68 68 end 69 end 70 if isoceancoupling, 71 executable='issm_ocean.exe'; 69 72 end 70 73 -
issm/trunk-jpl/src/m/classes/clusters/greenplanet.m
r21050 r21576 69 69 end 70 70 %}}} 71 function BuildKrigingQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{71 function BuildKrigingQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 72 72 73 73 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/hexagon.py
r21425 r21576 81 81 return self 82 82 # }}} 83 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ):83 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling): 84 84 # {{{ 85 85 … … 90 90 if version>=6: 91 91 executable='issm_dakota.exe' 92 if isoceancoupling: 93 executable='issm_ocean.exe' 92 94 93 95 #write queuing script -
issm/trunk-jpl/src/m/classes/clusters/hpc.m
r21050 r21576 90 90 end 91 91 %}}} 92 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{92 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 93 93 94 94 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/lonestar.m
r21050 r21576 96 96 end 97 97 %}}} 98 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{98 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 99 99 100 100 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end … … 107 107 executable='issm_dakota.exe'; 108 108 end 109 end 110 if isoceancoupling, 111 executable='issm_ocean.exe'; 109 112 end 110 113 -
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r21050 r21576 136 136 end 137 137 %}}} 138 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{138 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 139 139 140 140 if(isgprof), disp('gprof not supported by cluster, ignoring...'); end … … 146 146 executable='issm_dakota.exe'; 147 147 end 148 end 149 if isoceancoupling, 150 executable='issm_ocean.exe'; 148 151 end 149 152 -
issm/trunk-jpl/src/m/classes/clusters/pfe.py
r21050 r21576 133 133 return self 134 134 # }}} 135 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ):135 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling): 136 136 # {{{ 137 137 … … 142 142 if version>=6: 143 143 executable='issm_dakota.exe' 144 if isoceancoupling: 145 executable='issm_ocean.exe' 144 146 145 147 #write queuing script -
issm/trunk-jpl/src/m/classes/clusters/pollux.m
r21050 r21576 46 46 end 47 47 %}}} 48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{48 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 49 49 50 50 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/raijin.m
r21050 r21576 63 63 end 64 64 %}}} 65 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ) % {{{65 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 66 66 67 67 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end -
issm/trunk-jpl/src/m/classes/clusters/vilje.m
r21050 r21576 99 99 end 100 100 %}}} 101 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof ) % {{{101 function BuildQueueScript(cluster,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling) % {{{ 102 102 103 103 if(isvalgrind), disp('valgrind not supported by cluster, ignoring...'); end … … 110 110 executable='issm_dakota.exe'; 111 111 end 112 end 113 if isoceancoupling, 114 executable='issm_ocean.exe'; 112 115 end 113 116 -
issm/trunk-jpl/src/m/classes/clusters/vilje.py
r21568 r21576 81 81 return self 82 82 # }}} 83 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota ):83 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling): 84 84 # {{{ 85 85 … … 90 90 if version>=6: 91 91 executable='issm_dakota.exe' 92 if isoceancoupling: 93 executable='issm_ocean.exe' 92 94 93 95 #write queuing script -
issm/trunk-jpl/src/m/classes/transient.m
r21530 r21576 18 18 isslr = 0; 19 19 iscoupler = 0; 20 isoceancoupling = 0; 20 21 requested_outputs = {}; 21 22 end … … 43 44 self.ishydrology = 0; 44 45 self.isslr = 0; 46 self.isoceancoupling = 0; 45 47 self.iscoupler = 0; 46 48 … … 62 64 self.ishydrology = 0; 63 65 self.isslr = 0; 66 self.isoceancoupling = 0; 64 67 self.iscoupler = 0; 65 68 … … 91 94 md = checkfield(md,'fieldname','transient.requested_outputs','stringrow',1); 92 95 md = checkfield(md,'fieldname','transient.isslr','numel',[1],'values',[0 1]); 96 md = checkfield(md,'fieldname','transient.isoceancoupling','numel',[1],'values',[0 1]); 93 97 md = checkfield(md,'fieldname','transient.iscoupler','numel',[1],'values',[0 1]); 94 98 99 if (~strcmp(solution,'TransientSolution') & md.transient.iscoupling==1), 100 md = checkmessage(md,['Coupling with ocean model can only be performed for transient simulations!']); 101 end 95 102 end % }}} 96 103 function disp(self) % {{{ … … 108 115 fielddisplay(self,'ishydrology','indicates whether an hydrology model is used'); 109 116 fielddisplay(self,'isslr','indicates whether a sea-level rise solution is used in the transient'); 117 fielddisplay(self,'isoceancoupling','indicates whether a coupling with an ocean model is used in the transient'); 110 118 fielddisplay(self,'iscoupler','indicates whether different models are being run with need for coupling'); 111 119 fielddisplay(self,'requested_outputs','list of additional outputs requested'); … … 124 132 WriteData(fid,prefix,'object',self,'fieldname','ismovingfront','format','Boolean'); 125 133 WriteData(fid,prefix,'object',self,'fieldname','isslr','format','Boolean'); 134 WriteData(fid,prefix,'object',self,'fieldname','isoceancoupling','format','Boolean'); 126 135 WriteData(fid,prefix,'object',self,'fieldname','iscoupler','format','Boolean'); 127 136 … … 148 157 writejsdouble(fid,[modelname '.trans.ishydrology'],self.ishydrology); 149 158 writejsdouble(fid,[modelname '.trans.isslr'],self.isslr); 159 writejsdouble(fid,[modelname '.trans.isoceancoupling'],self.isoceancoupling); 150 160 writejsdouble(fid,[modelname '.trans.iscoupler'],self.iscoupler); 151 161 writejscellstring(fid,[modelname '.trans.requested_outputs'],self.requested_outputs); -
issm/trunk-jpl/src/m/classes/transient.py
r21530 r21576 23 23 self.ishydrology = False 24 24 self.isslr = False 25 self.isoceancoupling = False 25 26 self.iscoupler = False 26 27 self.requested_outputs = [] … … 43 44 string="%s\n%s"%(string,fielddisplay(self,'ishydrology','indicates whether an hydrology model is used')) 44 45 string="%s\n%s"%(string,fielddisplay(self,'isslr','indicates if a sea level rise solution is used in the transient')) 46 string="%s\n%s"%(string,fielddisplay(self,'isoceancoupling','indicates whether coupling with an ocean model is used in the transient')) 45 47 string="%s\n%s"%(string,fielddisplay(self,'iscoupler','indicates whether different models are being run with need for coupling')) 46 48 string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','list of additional outputs requested')) … … 68 70 self.ismovingfront = False 69 71 self.ishydrology = False 72 self.isoceancoupling = False 70 73 self.isslr = False 71 74 self.iscoupler = False … … 89 92 self.ishydrology = False 90 93 self.isslr = False 94 self.isoceancoupling = False 91 95 self.iscoupler = False 92 96 … … 112 116 md = checkfield(md,'fieldname','transient.ismovingfront','numel',[1],'values',[0,1]); 113 117 md = checkfield(md,'fieldname','transient.isslr','numel',[1],'values',[0,1]) 118 md = checkfield(md,'fieldname','transient.isoceancoupling','numel',[1],'values',[0,1]) 114 119 md = checkfield(md,'fieldname','transient.iscoupler','numel',[1],'values',[0,1]) 115 120 md = checkfield(md,'fieldname','transient.requested_outputs','stringrow',1) 121 122 if (solution!='TransientSolution') and (md.transient.iscoupling): 123 md.checkmessage("Coupling with ocean can only be done in transient simulations!") 116 124 117 125 return md … … 129 137 WriteData(fid,prefix,'object',self,'fieldname','ismovingfront','format','Boolean') 130 138 WriteData(fid,prefix,'object',self,'fieldname','isslr','format','Boolean') 139 WriteData(fid,prefix,'object',self,'fieldname','isoceancoupling','format','Boolean') 131 140 WriteData(fid,prefix,'object',self,'fieldname','iscoupler','format','Boolean') 132 141 -
issm/trunk-jpl/src/m/solve/solve.m
r21530 r21576 117 117 marshall(md); % bin file 118 118 ToolkitsFile(md.toolkits,[md.miscellaneous.name '.toolkits']); % toolkits file 119 BuildQueueScript(cluster,md.private.runtimename,md.miscellaneous.name,md.private.solution,md.settings.io_gather,md.debug.valgrind,md.debug.gprof,md.qmu.isdakota ); % queue file119 BuildQueueScript(cluster,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 120 120 121 121 %Upload all required files -
issm/trunk-jpl/src/m/solve/solve.py
r21530 r21576 113 113 marshall(md) # bin file 114 114 md.toolkits.ToolkitsFile(md.miscellaneous.name+'.toolkits') # toolkits file 115 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.isdakotai,md.transient.isoceancoupling) # queue file 116 116 117 117 #Stop here if batch mode
Note:
See TracChangeset
for help on using the changeset viewer.