Changeset 16966


Ignore:
Timestamp:
11/27/13 14:01:46 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added 'rand' option to bamg so that NR tests work on multiple platforms

Location:
issm/trunk-jpl/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.m

    r16937 r16966  
    1313%      'exclude'       ids to be excluded from the test
    1414%      'benchmark'     'all' (all of them)
    15 %                      'nightly' (nightly run/ daily run)
     15%                      'nightly' (nightly run)
    1616%                      'ismip'  : validation of ismip-hom tests
    1717%                      'eismint': validation of eismint tests
     
    6565%GET output {{{
    6666output=getfieldvalue(options,'output','none');
    67 if ~ismember(output,{'nightly','daily','none'})
     67if ~ismember(output,{'nightly','none'})
    6868        disp('runme warning: output not supported, defaulting to test ''none''')
    6969        output='none';
     
    239239                                                fclose(fid);
    240240                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,fieldname));
    241                                         elseif strcmpi(output,'daily');
    242                                                 fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
    243                                                 fprintf(fid,'%s',message);
    244                                                 fprintf(fid,'\n------------------------------------------------------------------\n');
    245                                                 fclose(fid);
    246                                                 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,fieldname));
    247241                                        else
    248242                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,fieldname));
    249                                                 rethrow(me2);
     243                                                fprintf('%s',message);
    250244                                                if(getfieldvalue(options,'stoponerror',0)), disp('STOP'); return; end
    251245                                        end
     246                                        continue;
    252247                                end
    253248                        end
     
    262257                if strcmpi(output,'nightly')
    263258                        fid=fopen([ISSM_DIR '/nightlylog/matlaberror.log'], 'at');
    264                         fprintf(fid,'%s',message);
    265                         fprintf(fid,'\n------------------------------------------------------------------\n');
    266                         fclose(fid);
    267                         disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,'N/A'));
    268                 elseif strcmpi(output,'daily');
    269                         fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
    270259                        fprintf(fid,'%s',message);
    271260                        fprintf(fid,'\n------------------------------------------------------------------\n');
  • issm/trunk-jpl/test/NightlyRun/test119.m

    r16938 r16966  
    11
    22%Simple mesh
    3 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.);
     3md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.,'rand',false);
    44x1=md.mesh.x;
    55y1=md.mesh.y;
    66
    77%hVertices
    8 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]');
     8md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]','rand',false);
    99x2=md.mesh.x;
    1010y2=md.mesh.y;
     
    1212%big mesh
    1313t0=clock;
    14 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.);
     14md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.,'rand',false);
    1515nbelements=md.mesh.numberofelements;
    1616elapsedtime=etime(clock,t0);
Note: See TracChangeset for help on using the changeset viewer.