Skip to content
Snippets Groups Projects
Verified Commit cc289468 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Testsuite: fix AIM tests

The test condition was incorrect (though this was probably harmless).

Also the error message related to oo_.dr.ghu was incorrect.
parent 18131492
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,8 @@ stoch_simul(aim_solver, order=1, irf=0);
benchmark = load(['fs2000_b1L1L' filesep 'Output' filesep 'fs2000_b1L1L_results']);
threshold = 1e-8;
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx) > threshold));
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx))) > threshold
error('error in ghx');
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu) > threshold));
error('error in ghy');
end;
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu))) > threshold
error('error in ghu');
end
......@@ -79,8 +79,8 @@ stoch_simul(aim_solver, order=1,irf=0);
benchmark = load(['fs2000x10L9_L' filesep 'Output' filesep 'fs2000x10L9_L_results']);
threshold = 1e-8;
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx) > threshold));
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx))) > threshold
error('error in ghx');
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu) > threshold));
error('error in ghy');
end;
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu))) > threshold
error('error in ghu');
end
......@@ -60,8 +60,8 @@ stoch_simul(aim_solver, order=1,irf=0);
benchmark = load(['fs2000x10_L9_L' filesep 'Output' filesep 'fs2000x10_L9_L_results']);
threshold = 1e-8;
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx) > threshold));
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx))) > threshold
error('error in ghx');
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu) > threshold));
error('error in ghy');
end;
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu))) > threshold
error('error in ghu');
end
......@@ -48,8 +48,8 @@ stoch_simul(aim_solver, order=1,irf=0);
benchmark = load(['ls2003_2L0L' filesep 'Output' filesep 'ls2003_2L0L_results']);
threshold = 1e-8;
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx) > threshold));
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx))) > threshold
error('error in ghx');
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu) > threshold));
error('error in ghy');
end;
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu))) > threshold
error('error in ghu');
end
......@@ -46,9 +46,8 @@ stoch_simul(aim_solver, order=1,irf=0);
benchmark = load(['ls2003_2L2L' filesep 'Output' filesep 'ls2003_2L2L_results']);
threshold = 1e-8;
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx) > threshold));
if max(max(abs(benchmark.oo_.dr.ghx-oo_.dr.ghx))) > threshold
error('error in ghx');
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu) > threshold));
error('error in ghy');
end;
elseif max(max(abs(benchmark.oo_.dr.ghu-oo_.dr.ghu))) > threshold
error('error in ghu');
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment