27 lambda, rho_cp, bd, dt, n)
28 class(
ax_t),
intent(in) :: Ax
29 type(
mesh_t),
intent(inout) :: msh
30 type(
space_t),
intent(inout) :: Xh
31 type(
field_t),
intent(inout) :: s
32 type(
field_t),
intent(inout) :: s_res
33 type(
field_t),
intent(in) :: f_Xh
34 type(
coef_t),
intent(inout) :: c_Xh
35 type(
field_t),
intent(in) :: lambda, rho_cp
36 real(kind=
rp),
intent(in) :: bd
37 real(kind=
rp),
intent(in) :: dt
38 integer,
intent(in) :: n
41 call copy(c_xh%h1, lambda%x, n)
43 c_xh%h2(i,1,1,1) = rho_cp%x(i,1,1,1) * bd / dt
47 call ax%compute(s_res%x, s%x, c_xh, msh, xh)
50 s_res%x(i,1,1,1) = (-s_res%x(i,1,1,1)) + f_xh%x(i,1,1,1)
subroutine scalar_residual_sx_compute(ax, s, s_res, f_xh, c_xh, msh, xh, lambda, rho_cp, bd, dt, n)
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...