Changeset 2160
- Timestamp:
- 09/09/09 15:36:12 (15 years ago)
- Location:
- issm/trunk/src/m/utils/Nightly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r1978 r2160 56 56 runme(packages(i),varargin{2}); 57 57 else 58 runme(packages(i));58 updatearchive 59 59 end 60 60 cd .. -
issm/trunk/src/m/utils/Nightly/runme_core.m
r2133 r2160 37 37 38 38 %read configuration 39 configuration; 39 if ~exist('./configuration.m') 40 error('runme_core error message: configuration file ''configuration.m'' not found'); 41 else 42 configuration; 43 end 40 44 41 45 %go through the sequences requested. … … 80 84 md=mesh(md,domainname,resolution); 81 85 else 82 md=mesh(md,domainname,rift outline,resolution);86 md=mesh(md,domainname,riftname,resolution); 83 87 md=meshprocessrifts(md); 84 88 end … … 141 145 fields=testsgetfields2(md,sequence); 142 146 147 %get Archive name 148 archive_name='Archive'; 149 for i=1:length(sequence), 150 if ischar(sequence{i}), 151 archive_name=[archive_name '_' sequence{i}]; 152 else 153 archive_name=[archive_name '_' num2str(sequence{i})]; 154 end 155 end 156 143 157 %CHECK TEST? 144 158 if strcmpi(testtype,'check'), 145 159 146 160 %load archive 147 eval(['load Archive_' analysis_type '_' sub_analysis_type '_' runtype ]);161 eval(['load ' archive_name ]); 148 162 149 163 for k=1:length(fields), … … 154 168 155 169 %compare to archive 156 eval(['Archive= Archive_' analysis_type '_' sub_analysis_type '_' runtype '_field' num2str(k) ';']);170 eval(['Archive=' archive_name '_field' num2str(k) ';']); 157 171 eval(['error_diff=full(max(abs(Archive-md.results.' field '))/(max(abs(Archive))+eps));']); 158 172 … … 165 179 end 166 180 167 168 169 181 %UPDATE ARCHIVE? 170 182 elseif strcmpi(testtype,'update'), … … 172 184 for k=1:length(fields), 173 185 field=fields{k}; 174 eval([ 'Archive_' analysis_type '_' sub_analysis_type '_' runtype '_field' num2str(k) ' = md.results. ' field ';']);186 eval([ archive_name '_field' num2str(k) ' = md.results. ' field ';']); 175 187 end 176 eval(['save Archive_' analysis_type '_' sub_analysis_type '_' runtype ' Archive_' analysis_type '_' sub_analysis_type '_' runtype '_field*']);177 disp(sprintf(['File Archive_' analysis_type '_' sub_analysis_type '_' runtype ' saved\n']));188 eval(['save ' archive_name ' ' archive_name '_field*']); 189 disp(sprintf(['File ' archive_name ' saved\n'])); 178 190 179 191 else … … 187 199 %something went wrong, print failure message: 188 200 message=getReport(me) 189 disp(sprintf(['\n\nFAILURE difference: %-16s test: %-25s solution: %-16s type: %-9s field: ' field '.\n\n'],'N/A',testname,[analysis_type '_' sub_analysis_type],runtype));190 end 191 end 201 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)); 202 end 203 end
Note:
See TracChangeset
for help on using the changeset viewer.