YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
Interpolation from weight file

Table of Contents

Description

This interpolation method generates an interpolation based on the contents of a provided weight file. The weight file has to be in the YAC weight file format. The weight file can be generated by writing any interpolation stack to file (see Interpolation stack). A weight file can contain weight based interpolation stencils and fixed values.

To reduce memory consumption per process, the contents of the weight file is read in and distributed by multiple processes (if available) in parallel.

As for any interpolation method, the file method can also be combined with other methods in the Interpolation stack.

YAC reads the weight files in parallel. This parallel input can be configed as described here: Configuration of parallel IO in YAC.

Options

  • filename (maximum length is YAC_MAX_FILE_NAME_LENGTH)

    Path to the weight file.

  • on_missing_file (default value: on_missing_file: error)

    Specifies how YAC should behave if the specified weight file is not available.

    • error

      Generate an error message and abort.

    • cont

      Continue with the next method in the interpolation.

  • on_success (default value: on_success: cont)

    Specifies how YAC should behave if the specified weight file was successfully read.

    • stop

      The following interpolation methods in the stack will not add anything to the already generated weights.

    • cont

      Continue with the next method in the interpolation.

YAML example

interpolation:
- user_file:
filename: weight_file.nc
on_missing_file: error
on_success: stop