Changeset 9716
- Timestamp:
- 09/09/11 07:42:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/loadresultsfromdisk.m
r9702 r9716 27 27 %read log files onto fields 28 28 if exist([md.miscellaneous.name '.errlog'],'file'), 29 md.results.(structure(1).SolutionType) .errlog=char(textread([md.miscellaneous.name '.errlog'],'%s','delimiter','\n'));29 md.results.(structure(1).SolutionType)(1).errlog=char(textread([md.miscellaneous.name '.errlog'],'%s','delimiter','\n')); 30 30 else 31 md.results.(structure(1).SolutionType) .errlog='';31 md.results.(structure(1).SolutionType)(1).errlog=''; 32 32 end 33 33 34 34 if exist([md.miscellaneous.name '.outlog'],'file'), 35 md.results.(structure(1).SolutionType) .outlog=char(textread([md.miscellaneous.name '.outlog'],'%s','delimiter','\n'));35 md.results.(structure(1).SolutionType)(1).outlog=char(textread([md.miscellaneous.name '.outlog'],'%s','delimiter','\n')); 36 36 else 37 md.iresults.(structure(1).SolutionType) .outlog='';37 md.iresults.(structure(1).SolutionType)(1).outlog=''; 38 38 end 39 39 40 if ~isempty(md.results.(structure(1).SolutionType) .errlog),40 if ~isempty(md.results.(structure(1).SolutionType)(1).errlog), 41 41 disp(['loadresultsfromcluster info message: error during solution. Check your errlog and outlog model fields']); 42 42 end
Note:
See TracChangeset
for help on using the changeset viewer.