Sum over j of weights(j) times the x-z mean of plane j, reduced over all ranks. The size and indexing of weights follow the local y planes of the rank, so each rank passes the weights of its own planes.
f must be a DIR_X field with data_loc set. weights has one entry per local y plane. The weights must already be normalised to sum to 1 over the global y extent for the result to be a mean.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_backend_t), | intent(inout) | :: | backend | |||
| type(mesh_t), | intent(in) | :: | mesh | |||
| class(field_t), | intent(in) | :: | f | |||
| real(kind=dp), | intent(in) | :: | weights(:) |