41 lambda, rho_cp, bd, dt, n)
42 class(
ax_t),
intent(in) :: Ax
43 type(
mesh_t),
intent(inout) :: msh
44 type(
space_t),
intent(inout) :: Xh
45 type(
field_t),
intent(inout) :: s
46 type(
field_t),
intent(inout) :: s_res
47 type(
field_t),
intent(in) :: f_Xh
48 type(
coef_t),
intent(inout) :: c_Xh
49 type(
field_t),
intent(in) :: lambda, rho_cp
50 real(kind=
rp),
intent(in) :: bd
51 real(kind=
rp),
intent(in) :: dt
52 integer,
intent(in) :: n
61 c_xh%h1(i,1,1,1) = lambda%x(i,1,1,1)
62 c_xh%h2(i,1,1,1) = rho_cp%x(i,1,1,1) * bd / dt
68 call ax%compute(s_res%x, s%x, c_xh, msh, xh)
76 s_res%x(i,1,1,1) = (-s_res%x(i,1,1,1)) + f_xh%x(i,1,1,1)
subroutine scalar_residual_cpu_compute(ax, s, s_res, f_xh, c_xh, msh, xh, lambda, rho_cp, bd, dt, n)
Compute the residual.
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...