u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
cell_residual(w, fev, uval, vel);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
upwind_value_residual(w, fev, uval, null_val, vel);
M.vmult(v, u);
w.add(-1., v);
u1(i1) = 1.;
w1 = 0.;
w2 = 0.;
- fev1.get_function_values(u1, indices1, u1val, true);
+ fev1.get_function_values(u1, indices1, make_array_view(u1val), true);
upwind_face_residual(w1, w2, fev1, fev2, u1val, nullval, vel);
M11.vmult(v1, u1);
w1.add(-1., v1);
}
w1 = 0.;
w2 = 0.;
- fev2.get_function_values(u1, indices2, u1val, true);
+ fev2.get_function_values(u1, indices2, make_array_view(u1val), true);
upwind_face_residual(w1, w2, fev1, fev2, nullval, u1val, vel);
M12.vmult(v1, u1);
w1.add(-1., v1);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
cell_residual<dim>(w, fes, ugrad);
Md.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
u_dot_n_residual(w, fev, fes, uval);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
cell_residual<dim>(w, fev, ugrad);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
nitsche_residual<dim>(w, fev, uval, ugrad, null_val, 17);
M.vmult(v, u);
w.add(-1., v);
u1(i1) = 1.;
w1 = 0.;
w2 = 0.;
- fev1.get_function_values(u1, indices1, u1val, true);
- fev1.get_function_gradients(u1, indices1, u1grad, true);
+ fev1.get_function_values(u1, indices1, make_array_view(u1val), true);
+ fev1.get_function_gradients(u1,
+ indices1,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, u1val, u1grad, nullval, nullgrad, 17);
M11.vmult(v1, u1);
w1 = 0.;
w2 = 0.;
- fev2.get_function_values(u1, indices2, u1val, true);
- fev2.get_function_gradients(u1, indices2, u1grad, true);
+ fev2.get_function_values(u1, indices2, make_array_view(u1val), true);
+ fev2.get_function_gradients(u1,
+ indices2,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, nullval, nullgrad, u1val, u1grad, 17);
M12.vmult(v1, u1);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
nitsche_tangential_residual<dim>(w, fev, uval, ugrad, null_val, 17);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
cell_residual<dim>(w, fev, ugrad);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
nitsche_residual<dim>(w, fev, uval, ugrad, null_val, 17);
M.vmult(v, u);
w.add(-1., v);
u1(i1) = 1.;
w1 = 0.;
w2 = 0.;
- fev1.get_function_values(u1, indices1, u1val, true);
- fev1.get_function_gradients(u1, indices1, u1grad, true);
+ fev1.get_function_values(u1, indices1, make_array_view(u1val), true);
+ fev1.get_function_gradients(u1,
+ indices1,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, u1val, u1grad, nullval, nullgrad, 17);
M11.vmult(v1, u1);
w1 = 0.;
w2 = 0.;
- fev2.get_function_values(u1, indices2, u1val, true);
- fev2.get_function_gradients(u1, indices2, u1grad, true);
+ fev2.get_function_values(u1, indices2, make_array_view(u1val), true);
+ fev2.get_function_gradients(u1,
+ indices2,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, nullval, nullgrad, u1val, u1grad, 17);
M12.vmult(v1, u1);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
cell_residual<dim>(w, fev, ugrad);
M.vmult(v, u);
w.add(-1., v);
u = 0.;
u(i) = 1.;
w = 0.;
- fev.get_function_values(u, indices, uval, true);
- fev.get_function_gradients(u, indices, ugrad, true);
+ fev.get_function_values(u, indices, make_array_view(uval), true);
+ fev.get_function_gradients(u, indices, make_array_view(ugrad), true);
nitsche_residual<dim>(w, fev, uval, ugrad, null_val, 17);
M.vmult(v, u);
w.add(-1., v);
u1(i1) = 1.;
w1 = 0.;
w2 = 0.;
- fev1.get_function_values(u1, indices1, u1val, true);
- fev1.get_function_gradients(u1, indices1, u1grad, true);
+ fev1.get_function_values(u1, indices1, make_array_view(u1val), true);
+ fev1.get_function_gradients(u1,
+ indices1,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, u1val, u1grad, nullval, nullgrad, 17);
M11.vmult(v1, u1);
w1 = 0.;
w2 = 0.;
- fev2.get_function_values(u1, indices2, u1val, true);
- fev2.get_function_gradients(u1, indices2, u1grad, true);
+ fev2.get_function_values(u1, indices2, make_array_view(u1val), true);
+ fev2.get_function_gradients(u1,
+ indices2,
+ make_array_view(u1grad),
+ true);
ip_residual<dim>(
w1, w2, fev1, fev2, nullval, nullgrad, u1val, u1grad, 17);
M12.vmult(v1, u1);