Changeset 2181


Ignore:
Timestamp:
09/09/09 17:40:12 (16 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Nightly/runme.m

    r2179 r2181  
    114114        end
    115115
    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
    117119        md=model;
    118120        if ~rifts,
     
    127129        eval(['md=setelementstype(md,' elementstype ');']);
    128130
     131        %parallel run?
    129132        if parallel,
    130133                %this run will be done in parallel
    131134                md.cluster=oshostname;
     135                md.name=testname;
    132136                %check and modify number of cpus if necessary
    133137                np=feature('numCores');
     
    136140                        md.np=np;
    137141                end
    138                 runtype='parallel';
    139         else
    140                 runtype='serial';
    141         end
    142 
    143         %some solution checks;
     142        end
     143
     144        %steady option?
    144145        if (  (strcmpi(analysis_type,'thermal') & strcmpi(sub_analysis_type,'steady')) | ...
    145146                        (strcmpi(analysis_type,'steadystate'))...
     
    148149        end
    149150
     151        %control ?
    150152        if control,
    151153                md.control_analysis=1;
     
    218220                                %disp test result
    219221                                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));
    221224                                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));
    223227                                end
    224228                        end
     
    229233                %something went wrong, print failure message:
    230234                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));
    232237        end
    233238end
Note: See TracChangeset for help on using the changeset viewer.