|
YAC 3.17.0
Yet Another Coupler
|
#include "interpolation/methods/interp_method.h"

Go to the source code of this file.
Data Structures | |
| struct | yac_interp_method_conserv_config |
Macros | |
| #define | YAC_INTERP_CONSERV_ORDER_DEFAULT (1) |
| #define | YAC_INTERP_CONSERV_ENFORCED_CONSERV_DEFAULT (0) |
| #define | YAC_INTERP_CONSERV_PARTIAL_COVERAGE_DEFAULT (0) |
| #define | YAC_INTERP_CONSERV_NORMALISATION_DEFAULT (YAC_INTERP_CONSERV_DESTAREA) |
Enumerations | |
| enum | yac_interp_method_conserv_normalisation { YAC_INTERP_CONSERV_DESTAREA = 0 , YAC_INTERP_CONSERV_FRACAREA = 1 } |
Functions | |
| struct interp_method * | yac_interp_method_conserv_new (int order, int enforced_conserv, int partial_coverage, enum yac_interp_method_conserv_normalisation normalisation) |
| struct yac_interp_method_config * | yac_interp_method_config_conserv_unpack (void *buffer, int buffer_size, int *position, MPI_Comm comm) |
| Unpacks a conservative interpolation method configuration from a buffer. | |
| struct yac_interp_method_config * | yac_interp_method_config_default_conserv_new (void) |
| Creates a conservative interpolation method configuration with default parameters. | |
| #define YAC_INTERP_CONSERV_ENFORCED_CONSERV_DEFAULT (0) |
Definition at line 26 of file interp_method_conserv.h.
| #define YAC_INTERP_CONSERV_NORMALISATION_DEFAULT (YAC_INTERP_CONSERV_DESTAREA) |
Definition at line 28 of file interp_method_conserv.h.
| #define YAC_INTERP_CONSERV_ORDER_DEFAULT (1) |
Definition at line 25 of file interp_method_conserv.h.
| #define YAC_INTERP_CONSERV_PARTIAL_COVERAGE_DEFAULT (0) |
Definition at line 27 of file interp_method_conserv.h.
normalisation options for conservative interpolation
(see SCRIP user manual for a more detailed description of the options)
Definition at line 16 of file interp_method_conserv.h.
| struct yac_interp_method_config * yac_interp_method_config_conserv_unpack | ( | void * | buffer, |
| int | buffer_size, | ||
| int * | position, | ||
| MPI_Comm | comm ) |
Unpacks a conservative interpolation method configuration from a buffer.
| [in] | buffer | Buffer containing the packed configuration data |
| [in] | buffer_size | Size of the buffer |
| [in,out] | position | Current position in the buffer (will be updated) |
| [in] | comm | MPI communicator for parallel unpacking |
Definition at line 1457 of file interp_method_conserv.c.
| struct yac_interp_method_config * yac_interp_method_config_default_conserv_new | ( | void | ) |
Creates a conservative interpolation method configuration with default parameters.
Definition at line 1443 of file interp_method_conserv.c.
| struct interp_method * yac_interp_method_conserv_new | ( | int | order, |
| int | enforced_conserv, | ||
| int | partial_coverage, | ||
| enum yac_interp_method_conserv_normalisation | normalisation ) |
constructor for an interpolation method of type interp_method_conserv
| [in] | order | 1st or 2nd order remapping |
| [in] | enforced_conserv | enforce conservation by correcting truncation errors |
| [in] | partial_coverage | if == 0, target cells that are not completely covered by non-masked source cells will not be interpolated (this is the default option) if != 0, for target cells that are only partially covered by non-mask source cells the interpolation value will be determined by the contributions of the respective source cells |
| [in] | normalisation | specifies how to do the normalisation |
Definition at line 1232 of file interp_method_conserv.c.
