1 function p=femwind_large_test(pin)
3 disp('basic convergence speed test')
11 % params.P_by_x=1; % coarsening proportioned by x % now always
12 p.coarse_K=1; % 'variational';
13 p.coarse_K=2; % 'assembly';
15 %p.levels=3; fprintf('levels=%i for debugging only!',p.levels)
25 fprintf('overiding p.%s=',ff)
31 rates(3,1) = 0.066948270621534; % 3 levels, coarse P variational
32 rates(8,1) = 0.066931756926231; % 8 levels, coarse P variational
33 rates(8,2) = 0.066930988019406; % 8 levels, coarse P assembly
34 rates(15,2)= 0.066930988013484; % max levels, coarse P assembly
35 rate = rates(p.levels,p.coarse_K);
36 if abs(p.rate - rate) < 1e-8
37 disp('basic convergence rate test OK')
39 error(sprintf('something changed, expected convergence rate %g got %g diff %g',...
40 rate,p.rate,rate-p.rate))