Changeset 4202 for issm/trunk
- Timestamp:
- 06/24/10 15:24:24 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/ReadData.m
r4196 r4202 27 27 elseif type==3, 28 28 N=fread(fid,1,'int'); 29 field=fread(fid,M*N,'double'); 29 field=fread(fid,[M N],'double'); 30 else 31 error(['cannot read data of type ' num2str(type) ]); 30 32 end 31 33 -
issm/trunk/src/m/classes/public/isresultconsistent.m
r3994 r4202 26 26 27 27 %DIAGNOSTIC 28 if analysis_type==Diagnostic AnalysisEnum() & md.control_analysis==0,28 if analysis_type==DiagnosticSolutionEnum() & md.control_analysis==0, 29 29 30 30 if (md.dim==3) … … 59 59 60 60 %CONTROL 61 if analysis_type==Diagnostic AnalysisEnum() & md.control_analysis==1,61 if analysis_type==DiagnosticSolutionEnum() & md.control_analysis==1, 62 62 63 63 if ~md.cm_gradient, … … 118 118 119 119 %THERMAL 120 if analysis_type==Thermal AnalysisEnum(),120 if analysis_type==ThermalSolutionEnum(), 121 121 122 122 for iter=1:length(md.results.ThermalAnalysis) … … 154 154 end 155 155 156 if analysis_type==TransientAnalysisEnum(),156 if (analysis_type==Transient2DSolutionEnum() | analysis_type==Transient3DSolutionEnum()), 157 157 158 158 for iter=1:length(md.results.TransientAnalysis) -
issm/trunk/src/m/classes/public/loadresultsfromdisk.m
r3923 r4202 20 20 %load results onto model 21 21 structure=parseresultsfromdisk(filename); 22 md.results.(structure. analysis_type)=structure;22 md.results.(structure.SolutionType)=structure; 23 23 24 24 %recover analysis_type from results 25 md.analysis_type=structure(1). analysis_type;25 md.analysis_type=structure(1).SolutionType; 26 26 if isscalar(md.sub_analysis_type), 27 27 md.sub_analysis_type=EnumAsString(md.sub_analysis_type); … … 30 30 %Check result is consistent, only if it exists 31 31 disp(sprintf('%s\n','checking result consistency')); 32 if ~isresultconsistent(md,structure(1). analysis_type),32 if ~isresultconsistent(md,structure(1).SolutionType), 33 33 %it would be very cruel to use an error, it would kill the computed results (although they are not consistent...) 34 34 disp('!! results not consistent correct the model !!')
Note:
See TracChangeset
for help on using the changeset viewer.