Changeset 672
- Timestamp:
- 06/01/09 13:47:11 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/loadresultsfromcluster.m
r473 r672 34 34 35 35 %erase the log and output files 36 system(['rm -rf ' md.name '.outlog ' md.name '.errlog' md.name '.outbin']); 36 system(['rm -rf ' md.name '.outlog ' md.name '.errlog ' md.name '.outbin ' md.name '.lock ']); 37 %erase input files 38 system(['rm -rf ' md.name '.bin ' md.name '.queue ']); -
issm/trunk/src/m/classes/public/loadresultsfromdisk.m
r643 r672 5 5 % md=loadresultsfromdisk(md,filename); 6 6 7 %We convert all results to m/a units, from m/s 8 7 %check number of inputs/outputs 9 8 if ((nargin~=2) | (nargout~=1)), 10 9 help loadresultsfromdisk; … … 12 11 end 13 12 14 15 md.results=parseresultsfromdisk(filename); 13 %load result onto model 14 if isnan(md.results) 15 md.results=struct(); 16 end 17 eval(['md.results.' md.analysis_type '=parseresultsfromdisk(filename);']); 16 18 17 19 %Check result is consistent 18 20 disp(sprintf('%s\n','checking result consistency')); 19 20 21 if ~isresultconsistent(md), 21 disp('!! results not consistent correct the model !!') %it would be very cruel to put an error, it would kill the computed results (even if not consistent...) 22 %it would be very cruel to put an error, it would kill the computed results (even if not consistent...) 23 disp('!! results not consistent correct the model !!') 22 24 end -
issm/trunk/src/m/classes/public/parseresultsfromdisk.m
r643 r672 14 14 15 15 %Read fields until the end of the file. 16 while 0<1, 16 result=ReadData(fid); 17 while ~isempty(result), 17 18 19 eval(['results(' num2str(result.step) ').' result.fieldname '=result.field;']); 20 eval(['results(' num2str(result.step) ').time=result.time;']); 21 eval(['results(' num2str(result.step) ').step=result.step;']); 18 22 result=ReadData(fid); 19 if isempty(result), 20 break; 21 else 22 eval(['results(' num2str(result.step) ').' result.fieldname '=result.field;']); 23 eval(['results(' num2str(result.step) ').time=result.time;']); 24 eval(['results(' num2str(result.step) ').step=result.step;']); 25 end 23 26 24 end -
issm/trunk/src/m/classes/public/solveparallel.m
r465 r672 26 26 %load results 27 27 md=loadresultsfromcluster(md); 28 else29 return;30 28 end
Note:
See TracChangeset
for help on using the changeset viewer.