Changeset 2181
- Timestamp:
- 09/09/09 17:40:12 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/runme.m
r2179 r2181 114 114 end 115 115 116 %initialize model, using presolve if need be, or just the piece of generic code below. 116 %beginning of the test 117 118 %initialize model 117 119 md=model; 118 120 if ~rifts, … … 127 129 eval(['md=setelementstype(md,' elementstype ');']); 128 130 131 %parallel run? 129 132 if parallel, 130 133 %this run will be done in parallel 131 134 md.cluster=oshostname; 135 md.name=testname; 132 136 %check and modify number of cpus if necessary 133 137 np=feature('numCores'); … … 136 140 md.np=np; 137 141 end 138 runtype='parallel'; 139 else 140 runtype='serial'; 141 end 142 143 %some solution checks; 142 end 143 144 %steady option? 144 145 if ( (strcmpi(analysis_type,'thermal') & strcmpi(sub_analysis_type,'steady')) | ... 145 146 (strcmpi(analysis_type,'steadystate'))... … … 148 149 end 149 150 151 %control ? 150 152 if control, 151 153 md.control_analysis=1; … … 218 220 %disp test result 219 221 if (error_diff>tolerance); 220 disp(sprintf(['\nERROR difference: %-7.2g > %7.2g test: %-25s solution: %-16s type: %-9s field: ' field '.\n\n'],error_diff,tolerance,testname,[analysis_type '_' sub_analysis_type],runtype)); 222 disp(sprintf(['\nERROR difference: %-7.2g > %7.2g test: %-15s analysis_type: %-10s sub_analysis_type: %-9s qmu: %i control: %i control_fit: %-12s parallel: %i field: %s\n'],... 223 error_diff,tolerance,testname,analysis_type,sub_analysis_type,qmu,control,control_fit,parallel,field)); 221 224 else 222 disp(sprintf(['\nSUCCESS difference: %-7.2g < %7.2g test: %-25s solution: %-16s type: %-9s field: ' field '.\n\n'],error_diff,tolerance,testname,[analysis_type '_' sub_analysis_type],runtype)); 225 disp(sprintf(['\nSUCCESS difference: %-7.2g < %7.2g test: %-15s analysis_type: %-10s sub_analysis_type: %-9s qmu: %i control: %i control_fit: %-12s parallel: %i field: %s\n'],... 226 error_diff,tolerance,testname,analysis_type,sub_analysis_type,qmu,control,control_fit,parallel,field)); 223 227 end 224 228 end … … 229 233 %something went wrong, print failure message: 230 234 message=getReport(me) 231 disp(sprintf(['\n\nFAILURE difference: %-16s test: %-25s solution: %-16s type: %-9s field: N/A.\n\n'],'N/A',testname,[analysis_type '_' sub_analysis_type],runtype)); 235 disp(sprintf(['\nFAILURE test: %-15s analysis_type: %-10s sub_analysis_type: %-9s qmu: %i control: %i control_fit: %-12s parallel: %i\n.'],... 236 testname,analysis_type,sub_analysis_type,qmu,control,control_fit,parallel)); 232 237 end 233 238 end
Note:
See TracChangeset
for help on using the changeset viewer.