72 type(
field_t),
intent(in),
target :: f
73 character(len=*),
optional,
intent(in) :: field_name
74 character(len=80) :: name
81 if (
present(field_name))
then
84 write(name,
'(A,A)')
'mean_', trim(f%name)
96 if (
associated(this%f))
then
100 if (
associated(this%mf))
then
119 real(kind=
rp),
intent(in) :: k
121 call field_cmult(this%mf, this%time,
size(this%mf%x))
123 this%time = this%time + k
124 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.
Computes the temporal mean of a field.
Abstract type defining a statistical quantity.