Neko  0.8.1
A portable framework for high-order spectral element flow simulations
scalar_residual_cpu Module Reference

Residuals in the scalar equation (CPU version). More...

Data Types

type  scalar_residual_cpu_t
 Wrapper type for the routine to compute the scalar residual on the CPU. More...
 

Functions/Subroutines

subroutine scalar_residual_cpu_compute (Ax, s, s_res, f_Xh, c_Xh, msh, Xh, lambda, rhocp, bd, dt, n)
 Compute the residual. More...
 

Detailed Description

Residuals in the scalar equation (CPU version).

Function/Subroutine Documentation

◆ scalar_residual_cpu_compute()

subroutine scalar_residual_cpu::scalar_residual_cpu_compute ( class(ax_t), intent(in)  Ax,
type(field_t), intent(inout)  s,
type(field_t), intent(inout)  s_res,
type(field_t), intent(inout)  f_Xh,
type(coef_t), intent(inout)  c_Xh,
type(mesh_t), intent(inout)  msh,
type(space_t), intent(inout)  Xh,
real(kind=rp), intent(in)  lambda,
real(kind=rp), intent(in)  rhocp,
real(kind=rp), intent(in)  bd,
real(kind=rp), intent(in)  dt,
integer, intent(in)  n 
)

Compute the residual.

Parameters
AxThe Helmholtz operator.
sThe values of the scalar.
s_resThe values of the scalar residual.
f_xHThe right hand side.
c_xHThe SEM coefficients.
mshThe mesh.
XhThe SEM function space.
lambdaThe thermal conductivity.
rhocpThe density multiplied by the specific heat capacity.
bdThe coefficeints from the BDF differencing scheme.
dtThe timestep.
nThe total number of degrees of freedom.

Definition at line 31 of file scalar_residual_cpu.f90.