Changeset 5100
- Timestamp:
- 08/09/10 15:05:51 (15 years ago)
- Location:
- issm/trunk/test/NightlyRun
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/NightlyRun/IdToName.m
r5097 r5100 1 function name=Id 2Name(id);2 %ID 2NAME- return name of test1 function name=IdToName(id); 2 %IDTONAME- return name of test 3 3 % 4 4 % Usage: 5 % name=Id 2Name(id);5 % name=IdToName(id); 6 6 7 7 if (id==101), name='SquareSheetConstrainedDiagM2dSerial'; -
issm/trunk/test/NightlyRun/README
r5003 r5100 16 16 17 17 This directory contains all the tests that run every night to check the code. 18 The file Id 2Name associate a test id to its name.18 The file IdToName associate a test id to its name. 19 19 All the files necessary to run the tests can be found in: 20 20 ../Exp/ for the exp files (domains, contours, ...) … … 30 30 5: Pine Island Glacier 31 31 6: 79North 32 Add the id and testname in Id 2Name.m (incresing order)32 Add the id and testname in IdToName.m (incresing order) 33 33 We try not to create to many .par and .exp files, so try to use the existing ones as much as possible. 34 34 To modify some characteristics, do it in the testxxx.m file. -
issm/trunk/test/NightlyRun/runme.m
r5098 r5100 133 133 if (error_diff>tolerance); 134 134 disp(sprintf(['ERROR difference: %-7.2g > %7.2g test id: %i test name: %s field: %s'],... 135 error_diff,tolerance,id,Id 2Name(id),fieldname));135 error_diff,tolerance,id,IdToName(id),fieldname)); 136 136 else 137 137 disp(sprintf(['SUCCESS difference: %-7.2g < %7.2g test id: %i test name: %s field: %s'],... 138 error_diff,tolerance,id,Id 2Name(id),fieldname));138 error_diff,tolerance,id,IdToName(id),fieldname)); 139 139 end 140 140 … … 149 149 fprintf(fid,'\n------------------------------------------------------------------\n'); 150 150 fclose(fid); 151 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id 2Name(id),'N/A'));151 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A')); 152 152 elseif strcmpi(output,'daily'); 153 153 fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at'); … … 155 155 fprintf(fid,'\n------------------------------------------------------------------\n'); 156 156 fclose(fid); 157 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id 2Name(id),'N/A'));157 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A')); 158 158 end 159 159 end … … 171 171 fprintf(fid,'\n------------------------------------------------------------------\n'); 172 172 fclose(fid); 173 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id 2Name(id),fieldname));173 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname)); 174 174 elseif strcmpi(output,'daily'); 175 175 fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at'); … … 177 177 fprintf(fid,'\n------------------------------------------------------------------\n'); 178 178 fclose(fid); 179 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id 2Name(id),fieldname));179 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname)); 180 180 end 181 181 end
Note:
See TracChangeset
for help on using the changeset viewer.