YetAnotherCoupler  2.4.1
Interpolation

YAC supports cell and point based fields. Examples for these are fluxes and temperatures respectively. For point based fields, can be defined per corner, cell, or edge. In case of cells or edges, the user has to explicitly provide coordinates through the def_points-interface for the location of these points. fields can be defined on points or on cells.

A target field can only be defined on a single point set. However, if supported by the interpolation, the source field can consist of multiple point sets (for example data values at the corners and edges of a cell).

If a mask is defined for a point set, it will be taken into account by the interpolations.

Interpolations in YAC are all in 2D on the sphere.

An interpolation consists of a Interpolation stack which in turn is comprised of one or more Interpolation methods (see Interpolation stack for a more detailed description).

If a field consists of multiple levels, whose interpolation is identical and have the same coupling frequency, they can all be exchanged at the same time with the same put/get-call. The same applies different fields with the same coupling configuration. The number of 2D fields exchanged in a single put/get-call is configured by the "collection_size" parameter.

Interpolations are configured in the XML configuration file.

In case the user calls put or get for a field for which no interpolation is configured in the configuration file, the calls will return immediately and will set the info argument accordinly.