73 type(
field_t),
intent(in),
target :: f
74 character(len=*),
optional,
intent(in) :: field_name
75 character(len=NEKO_VARNAME_LEN) :: name
82 if (
present(field_name))
then
85 write(name,
'(A,A)')
'mean_', trim(f%name)
97 if (
associated(this%f))
then
101 if (
associated(this%mf))
then
120 real(kind=
rp),
intent(in) :: k
122 call field_cmult(this%mf, this%time,
size(this%mf%x))
124 this%time = this%time + k
125 call field_cmult(this%mf, 1.0_rp / this%time,
size(this%mf%x))
subroutine, public field_add2s2(a, b, c1, n)
Vector addition with scalar multiplication (multiplication on second argument)
subroutine, public field_cmult(a, c, n)
Multiplication by constant c .
subroutine mean_field_update(this, k)
Update the mean field with a new sample.
subroutine mean_field_init(this, f, field_name)
Constructor.
subroutine mean_field_reset(this)
Resets a the mean field and the averaging time value to zero.
subroutine mean_field_free(this)
Destructor.
integer, parameter neko_bcknd_device
integer, parameter, public rp
Global precision used in computations.
Defines a registry for storing solution fields.
type(registry_t), target, public neko_registry
Global field registry.
Defines a statistical quantity.
integer, parameter, public neko_varname_len
Computes the temporal mean of a field.
Abstract type defining a statistical quantity.