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