2 disp('w_assembly_test')
13 %In femwind main 1 is added to each element
14 lambda = rand(nel(1)+1,nel(2)+1,nel(3)+1);
16 X = regular_mesh(nel,h,expand);
17 X = add_terrain_to_mesh(X, 'hill', 'squash', 0.1);
18 [CX,CH] = center_mesh(X); % get midpoints of elements
19 U0={rand(nel),rand(nel),rand(nel)};
21 % test same results for ndt_mult from matlab and fortran
22 if exist('fortran/w_assembly_test.exe')
23 disp('testing if same result in fortran')
24 err=w_assembly_fortran(A,X, U0,lambda, params);
26 fprintf('error %g OK\n',err)
28 error(sprintf('error %g too large',err))
31 warning('fortran/w_assembly_test.exe not available')