YetAnotherCoupler 3.1.1
Loading...
Searching...
No Matches
User callback interpolation

Table of Contents

Description

This interpolation method allows the user to compute the interpolation weight at runtime and provide them to YAC to be used for the coupling.

The interpolation method first searches for matching source cells for all target points that have to be interpolated. Afterwards a user provided weight computation function (yac_func_compute_weights) is called for all of these target points on the processes which have the required sources cell in their local grid data. The weights returned by this function will later be used for the interpolation.

The weight computation function is provided through the yac_cadd_compute_weights_callback interface. In addition, he can also provide a data pointer, which is later passed to the function.

Options

YAML example

interpolation:
- user_callback:
func_compute_weights: compute_weights_callback