YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
interpolation_internal.h File Reference

Defines internal basic interpolation definitions. More...

Include dependency graph for interpolation_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YAC_FRAC_MASK_VALUE_IS_SET(value)    (!isnormal(value) || ((value) != YAC_FRAC_MASK_UNDEF))
 Test whether a fractional mask value is explicitly set.
 
#define YAC_FRAC_MASK_VALUE_IS_VALID(value)
 Test whether a fractional mask value is valid.
 

Functions

struct yac_collection_selection const * yac_interpolation_get_collection_selection (struct yac_interpolation const *interp)
 Return the collection selection associated with an interpolation.
 

Variables

double const YAC_FRAC_MASK_UNDEF
 

Detailed Description

Defines internal basic interpolation definitions.

This header defines internal constants and macros used throughout the interpolation module of YAC. It includes definitions for handling fractional masks and provides utility macros to check the state of fractional mask values.

Definition in file interpolation_internal.h.

Macro Definition Documentation

◆ YAC_FRAC_MASK_VALUE_IS_SET

#define YAC_FRAC_MASK_VALUE_IS_SET ( value)     (!isnormal(value) || ((value) != YAC_FRAC_MASK_UNDEF))

Test whether a fractional mask value is explicitly set.

Evaluates to nonzero, if the value is either not a normal number (e.g. NaN/Inf) or differs from YAC_FRAC_MASK_UNDEF.

Definition at line 29 of file interpolation_internal.h.

◆ YAC_FRAC_MASK_VALUE_IS_VALID

#define YAC_FRAC_MASK_VALUE_IS_VALID ( value)
Value:
(!isnormal(value) || \
struct @34::@35 value
double const YAC_FRAC_MASK_NO_VALUE
double const YAC_FRAC_MASK_UNDEF

Test whether a fractional mask value is valid.

Evaluates to nonzero if the value is either not a normal number, or is different from both YAC_FRAC_MASK_UNDEF and YAC_FRAC_MASK_NO_VALUE.

Definition at line 39 of file interpolation_internal.h.

Function Documentation

◆ yac_interpolation_get_collection_selection()

struct yac_collection_selection const * yac_interpolation_get_collection_selection ( struct yac_interpolation const * interp)

Return the collection selection associated with an interpolation.

The returned pointer is owned by the interpolation object; the caller must not free it. If interp is NULL the function returns NULL.

Parameters
[in]interpPointer to interpolation object (may be NULL).
Returns
Pointer to the collection selection (const), or NULL.

Definition at line 386 of file interpolation.c.

Variable Documentation

◆ YAC_FRAC_MASK_UNDEF

double const YAC_FRAC_MASK_UNDEF
extern

Value indicating that fractional mask behavious

Definition at line 26 of file interpolation.c.