@@ -53,8 +53,7 @@ function test_projection(order, elementtype)
5353 elseif dim == 3
5454 f_res = [f ((x_1, x_2, x_3)) for x_1 in qp_1D_coord, x_2 in qp_1D_coord, x_3 in qp_1D_coord]
5555 end
56- interp_linear = linear_interpolation (ntuple (_ -> qp_1D_coord, dim), f_res; extrapolation_bc = Interpolations. Line ())
57- ae = [interp_linear (coords... ) for coords in cellcoords]
56+ ae = [interp_linear (qp_1D_coord, f_res, coords... ) for coords in cellcoords]
5857 elseif order == 2
5958 # For a quadratic approximation the analytical solution is recovered
6059 ae = zeros (length (point_vars))
@@ -67,7 +66,7 @@ function test_projection(order, elementtype)
6766 qp_values = analytical (f_vector)
6867 point_vars = project (proj, qp_values, qr)
6968 if order == 1
70- ae = [Vec {1, Float64} ((interp_linear (coords... ),)) for coords in cellcoords]
69+ ae = [Vec {1, Float64} ((interp_linear (qp_1D_coord, f_res, coords... ),)) for coords in cellcoords]
7170 elseif order == 2
7271 ae = zeros (length (point_vars))
7372 apply_analytical! (ae, proj. dh, :_ , x -> f_vector (x)[1 ])
@@ -82,7 +81,7 @@ function test_projection(order, elementtype)
8281 point_vars = project (proj, qp_values, qr)
8382 point_vars_2 = project (proj, qp_values_matrix, qr)
8483 if order == 1
85- ae = [Tensor {2, 2, Float64} ((interp_linear (coords... ), 2 * interp_linear (coords... ), 3 * interp_linear (coords... ), 4 * interp_linear (coords... ))) for coords in cellcoords]
84+ ae = [Tensor {2, 2, Float64} ((interp_linear (qp_1D_coord, f_res, coords... ), 2 * interp_linear (qp_1D_coord, f_res, coords... ), 3 * interp_linear (qp_1D_coord, f_res, coords... ), 4 * interp_linear (qp_1D_coord, f_res, coords... ))) for coords in cellcoords]
8685 elseif order == 2
8786 ae = zeros (4 , length (point_vars))
8887 for i in 1 : 4
@@ -99,7 +98,7 @@ function test_projection(order, elementtype)
9998 point_vars = project (proj, qp_values, qr)
10099 point_vars_2 = project (proj, qp_values_matrix, qr)
101100 if order == 1
102- ae = [SymmetricTensor {2, 2, Float64} ((interp_linear (coords... ), 2 * interp_linear (coords... ), 3 * interp_linear (coords... ))) for coords in cellcoords]
101+ ae = [SymmetricTensor {2, 2, Float64} ((interp_linear (qp_1D_coord, f_res, coords... ), 2 * interp_linear (qp_1D_coord, f_res, coords... ), 3 * interp_linear (qp_1D_coord, f_res, coords... ))) for coords in cellcoords]
103102 elseif order == 2
104103 ae = zeros (3 , length (point_vars))
105104 for i in 1 : 3
0 commit comments