Changeset 5100


Ignore:
Timestamp:
08/09/10 15:05:51 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved Id2Name to IdToName

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=Id2Name(id);
    2 %ID2NAME- return name of test
     1function name=IdToName(id);
     2%IDTONAME- return name of test
    33%
    44%   Usage:
    5 %      name=Id2Name(id);
     5%      name=IdToName(id);
    66
    77if     (id==101), name='SquareSheetConstrainedDiagM2dSerial';
  • issm/trunk/test/NightlyRun/README

    r5003 r5100  
    1616
    1717This directory contains all the tests that run every night to check the code.
    18 The file Id2Name associate a test id to its name.
     18The file IdToName associate a test id to its name.
    1919All the files necessary to run the tests can be found in:
    2020../Exp/ for the exp files (domains, contours, ...)
     
    30305: Pine Island Glacier
    31316: 79North
    32 Add the id and testname in Id2Name.m (incresing order)
     32Add the id and testname in IdToName.m (incresing order)
    3333We try not to create to many .par and .exp files, so try to use the existing ones as much as possible.
    3434To modify some characteristics, do it in the testxxx.m file.
  • issm/trunk/test/NightlyRun/runme.m

    r5098 r5100  
    133133                                        if (error_diff>tolerance);
    134134                                                disp(sprintf(['ERROR   difference: %-7.2g > %7.2g test id: %i test name: %s field: %s'],...
    135                                                         error_diff,tolerance,id,Id2Name(id),fieldname));
     135                                                        error_diff,tolerance,id,IdToName(id),fieldname));
    136136                                        else
    137137                                                disp(sprintf(['SUCCESS difference: %-7.2g < %7.2g test id: %i test name: %s field: %s'],...
    138                                                         error_diff,tolerance,id,Id2Name(id),fieldname));
     138                                                        error_diff,tolerance,id,IdToName(id),fieldname));
    139139                                        end
    140140
     
    149149                                                fprintf(fid,'\n------------------------------------------------------------------\n');
    150150                                                fclose(fid);
    151                                                 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id2Name(id),'N/A'));
     151                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A'));
    152152                                        elseif strcmpi(output,'daily');
    153153                                                fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
     
    155155                                                fprintf(fid,'\n------------------------------------------------------------------\n');
    156156                                                fclose(fid);
    157                                                 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id2Name(id),'N/A'));
     157                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A'));
    158158                                        end
    159159                                end
     
    171171                        fprintf(fid,'\n------------------------------------------------------------------\n');
    172172                        fclose(fid);
    173                         disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id2Name(id),fieldname));
     173                        disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname));
    174174                elseif strcmpi(output,'daily');
    175175                        fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
     
    177177                        fprintf(fid,'\n------------------------------------------------------------------\n');
    178178                        fclose(fid);
    179                         disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,Id2Name(id),fieldname));
     179                        disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname));
    180180                end
    181181        end
Note: See TracChangeset for help on using the changeset viewer.