27 lambda, rhocp, 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(inout) :: f_Xh
34 type(
coef_t),
intent(inout) :: c_Xh
35 type(
field_t),
intent(in) :: lambda
36 real(kind=
rp),
intent(in) :: rhocp
37 real(kind=
rp),
intent(in) :: bd
38 real(kind=
rp),
intent(in) :: dt
39 integer,
intent(in) :: n
42 call copy(c_xh%h1, lambda%x, n)
43 call cfill(c_xh%h2, rhocp * bd / dt, n)
46 call ax%compute(s_res%x, s%x, c_xh, msh, xh)
49 s_res%x(i,1,1,1) = (-s_res%x(i,1,1,1)) + f_xh%x(i,1,1,1)
Defines a Matrix-vector product.
subroutine, public cfill(a, c, n)
Set all elements to a constant c .
subroutine, public copy(a, b, n)
Copy a vector .
integer, parameter, public rp
Global precision used in computations.
Residuals in the Pn-Pn formulation (SX version)
subroutine scalar_residual_sx_compute(Ax, s, s_res, f_Xh, c_Xh, msh, Xh, lambda, rhocp, bd, dt, n)
Defines the residual for the scalar transport equation.
Defines a function space.
Base type for a matrix-vector product providing .
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...
Abstract type to compute scalar residual.
The function space for the SEM solution fields.