YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
interp_method_conserv.h File Reference
#include "interp_method.h"
Include dependency graph for interp_method_conserv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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   (0)
 

Enumerations

enum  yac_interp_method_conserv_normalisation { YAC_INTERP_CONSERV_DESTAREA = 0 , YAC_INTERP_CONSERV_FRACAREA = 1 }
 

Functions

struct interp_methodyac_interp_method_conserv_new (int order, int enforced_conserv, int partial_coverage, enum yac_interp_method_conserv_normalisation normalisation)
 

Macro Definition Documentation

◆ YAC_INTERP_CONSERV_ENFORCED_CONSERV_DEFAULT

#define YAC_INTERP_CONSERV_ENFORCED_CONSERV_DEFAULT   (0)

Definition at line 30 of file interp_method_conserv.h.

◆ YAC_INTERP_CONSERV_NORMALISATION_DEFAULT

#define YAC_INTERP_CONSERV_NORMALISATION_DEFAULT   (0)

Definition at line 32 of file interp_method_conserv.h.

◆ YAC_INTERP_CONSERV_ORDER_DEFAULT

#define YAC_INTERP_CONSERV_ORDER_DEFAULT   (1)

Definition at line 29 of file interp_method_conserv.h.

◆ YAC_INTERP_CONSERV_PARTIAL_COVERAGE_DEFAULT

#define YAC_INTERP_CONSERV_PARTIAL_COVERAGE_DEFAULT   (0)

Definition at line 31 of file interp_method_conserv.h.

Enumeration Type Documentation

◆ yac_interp_method_conserv_normalisation

normalisation options for conservative interpolation
(see SCRIP user manual for a more detailed description of the options)

Enumerator
YAC_INTERP_CONSERV_DESTAREA 

interpolation values are normalised by the area of the respective target cell (this is the default option)

YAC_INTERP_CONSERV_FRACAREA 

interpolation values will be normalised by the area of the respective target cell that is covered by non-masked target cells

Examples
test_interp_method_conserv_parallel.c.

Definition at line 20 of file interp_method_conserv.h.

Function Documentation

◆ yac_interp_method_conserv_new()

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 a interpolation method of type interp_method_conserv

Parameters
[in]order1st or 2nd order remapping
[in]enforced_conservenforce conservation by correcting truncation errors
[in]partial_coverageif == 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]normalisationspecifies how to do the normalisation

Definition at line 1224 of file interp_method_conserv.c.

Here is the caller graph for this function: