79 type(
field_t),
intent(in),
target :: f
80 character(len=*),
optional,
intent(in) :: field_name
81 character(len=NEKO_VARNAME_LEN) :: name
88 if (
present(field_name))
then
91 write(name,
'(A,A)')
'mean_', trim(f%name)
103 if (
associated(this%f))
then
107 if (
associated(this%mf))
then
126 real(kind=
rp),
intent(in) :: k
128 call field_cmult(this%mf, this%time,
size(this%mf%x))
130 this%time = this%time + k
131 call field_cmult(this%mf, 1.0_rp / this%time,
size(this%mf%x))
142 real(kind=
rp),
intent(in) :: k
143 type(
field_t),
intent(in) :: a, b
145 call field_cmult(this%mf, this%time,
size(this%mf%x))
147 this%time = this%time + k
148 call field_cmult(this%mf, 1.0_rp / this%time,
size(this%mf%x))
159 real(kind=
rp),
intent(in) :: k
160 type(
field_t),
intent(in) :: a1, a2, a3, b1, b2, b3
162 call field_cmult(this%mf, this%time,
size(this%mf%x))
166 this%time = this%time + k
167 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_addcol3s2(a, b, c, s, n)
Returns .
subroutine, public field_cmult(a, c, n)
Multiplication by constant c .
subroutine mean_field_update_dot3(this, k, a1, a2, a3, b1, b2, b3)
Update the mean field using as the sample, without the need for a work field holding the sum.
subroutine mean_field_update_col3(this, k, a, b)
Update the mean field using the pointwise product as the sample, without the need for a work field h...
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.