Changeset 2382
- Timestamp:
- 10/07/09 14:56:14 (15 years ago)
- Location:
- issm/trunk/src/m/classes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/@model/model.m
r2354 r2382 221 221 222 222 %Results fields 223 md.inputfilename=''; 224 md.outputfilename=''; 223 225 md.results=NaN; 224 226 md.vx=NaN; -
issm/trunk/src/m/classes/public/loadresultsfromdisk.m
r2115 r2382 22 22 %Check result is consistent, only if it exists 23 23 disp(sprintf('%s\n','checking result consistency')); 24 if ~isresultconsistent(md,md.analysis_type),25 %it would be very cruel to put an error, it would kill the computed results (even if not consistent...)26 disp('!! results not consistent correct the model !!')27 end24 % if ~isresultconsistent(md,md.analysis_type), 25 % %it would be very cruel to put an error, it would kill the computed results (even if not consistent...) 26 % disp('!! results not consistent correct the model !!') 27 % end 28 28 end 29 29 -
issm/trunk/src/m/classes/public/marshall.m
r2354 r2382 10 10 %some checks on list of arguments 11 11 if ((nargin~=3) & (nargout~=0)) 12 marshallusage;12 help marshall; 13 13 error('marshall error message'); 14 14 end … … 173 173 end 174 174 175 %input and output file names 176 WriteData(fid,md.inputfilename,'String','inputfilename'); 177 WriteData(fid,md.outputfilename,'String','outputfilename'); 178 175 179 %close file 176 180 st=fclose(fid); … … 178 182 error(['marshall error message: could not close file ' [md.name '.bin']]); 179 183 end 180 181 end182 183 184 function marshallusage();185 disp(' ');186 disp('function marshall(md,solutiontype)');187 disp(' marshall: output Cielo compatible binary file from @model md, for certain solution type.');188 disp(' solutiontype can be ''diagnostic'',''prognostic'' or ''control''. ');189 disp(' This binary file will be used for parallel runs in cielo.');190 disp('INPUT function marshall(md,solutiontype)');191 end -
issm/trunk/src/m/classes/public/parametercontrol.m
r2374 r2382 15 15 if exist(options,'nsteps'), 16 16 nsteps=getoption(options,'nsteps'); 17 if (length(nsteps)~=1 | nsteps >0 | floor(nsteps)==nsteps)17 if (length(nsteps)~=1 | nsteps<=0 | floor(nsteps)~=nsteps) 18 18 md.nsteps=100; 19 19 else -
issm/trunk/src/m/classes/public/presolve.m
r2110 r2382 5 5 % md=presolve(md) 6 6 7 %first, deal with rifts. 7 %deal with outputfilename and inputfilename 8 md.inputfilename=[md.name '.bin']; 9 md.outputfilename=[md.name '.outbin']; 10 11 %deal with rifts. 8 12 if isempty(md.rifts) | isnans(md.rifts), 9 13 md.numrifts=0; … … 29 33 count=count+numpairsforthisrift; 30 34 end 31 32
Note:
See TracChangeset
for help on using the changeset viewer.