YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
interpolation.h File Reference
#include <yaxt.h>
#include <math.h>
Include dependency graph for interpolation.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))
 
#define YAC_FRAC_MASK_VALUE_IS_VALID(value)
 

Functions

struct yac_interpolationyac_interpolation_new (size_t collection_size, double frac_mask_fallback_value, double scale_factor, double scale_summand)
 
void yac_interpolation_inc_ref_count (struct yac_interpolation *interpolation)
 
int yac_interpolation_with_frac_mask (struct yac_interpolation *interpolation)
 
void yac_interpolation_add_fixed (struct yac_interpolation *interp, double value, size_t count, size_t *pos)
 
void yac_interpolation_add_direct (struct yac_interpolation *interp, Xt_redist redist)
 
void yac_interpolation_add_direct_mf (struct yac_interpolation *interp, Xt_redist *redists, size_t num_src_fields)
 
void yac_interpolation_add_sum_at_src (struct yac_interpolation *interp, Xt_redist *halo_redists, size_t tgt_count, size_t *num_src_per_tgt, size_t *src_field_idx, size_t *src_idx, size_t num_src_fields, Xt_redist result_redist)
 
void yac_interpolation_add_sum_at_tgt (struct yac_interpolation *interp, Xt_redist *src_redists, size_t *tgt_pos, size_t tgt_count, size_t *num_src_per_tgt, size_t *src_field_idx, size_t *src_idx, size_t num_src_fields)
 
void yac_interpolation_add_weight_sum_mvp_at_src (struct yac_interpolation *interp, Xt_redist *halo_redists, size_t tgt_count, size_t *num_src_per_tgt, double *weights, size_t *src_field_idx, size_t *src_idx, size_t num_src_fields, Xt_redist result_redist)
 
void yac_interpolation_add_weight_sum_mvp_at_tgt (struct yac_interpolation *interp, Xt_redist *src_redists, size_t *tgt_pos, size_t tgt_count, size_t *num_src_per_tgt, double *weights, size_t *src_field_idx, size_t *src_idx, size_t num_src_fields)
 
struct yac_interpolationyac_interpolation_copy (struct yac_interpolation *interp)
 
void yac_interpolation_execute (struct yac_interpolation *interp, double ***src_fields, double **tgt_field)
 
void yac_interpolation_execute_frac (struct yac_interpolation *interp, double ***src_fields, double ***src_frac_masks, double **tgt_field)
 
void yac_interpolation_execute_put (struct yac_interpolation *interp, double ***src_fields)
 
void yac_interpolation_execute_put_frac (struct yac_interpolation *interp, double ***src_fields, double ***src_frac_masks)
 
void yac_interpolation_execute_get (struct yac_interpolation *interp, double **tgt_field)
 
void yac_interpolation_execute_get_async (struct yac_interpolation *interp, double **tgt_field)
 
int yac_interpolation_execute_put_test (struct yac_interpolation *interp)
 
int yac_interpolation_execute_get_test (struct yac_interpolation *interp)
 
void yac_interpolation_execute_wait (struct yac_interpolation *interp)
 
void yac_interpolation_delete (struct yac_interpolation *interp)
 

Variables

double const YAC_FRAC_MASK_NO_VALUE
 
double const YAC_FRAC_MASK_UNDEF
 

Macro Definition Documentation

◆ YAC_FRAC_MASK_VALUE_IS_SET

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

Definition at line 47 of file interpolation.h.

◆ YAC_FRAC_MASK_VALUE_IS_VALID

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

Definition at line 49 of file interpolation.h.

Function Documentation

◆ yac_interpolation_add_direct()

void yac_interpolation_add_direct ( struct yac_interpolation * interp,
Xt_redist redist )

Definition at line 100 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_direct_mf()

void yac_interpolation_add_direct_mf ( struct yac_interpolation * interp,
Xt_redist * redists,
size_t num_src_fields )

Definition at line 107 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_fixed()

void yac_interpolation_add_fixed ( struct yac_interpolation * interp,
double value,
size_t count,
size_t * pos )

Definition at line 91 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_sum_at_src()

void yac_interpolation_add_sum_at_src ( struct yac_interpolation * interp,
Xt_redist * halo_redists,
size_t tgt_count,
size_t * num_src_per_tgt,
size_t * src_field_idx,
size_t * src_idx,
size_t num_src_fields,
Xt_redist result_redist )

Definition at line 117 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_sum_at_tgt()

void yac_interpolation_add_sum_at_tgt ( struct yac_interpolation * interp,
Xt_redist * src_redists,
size_t * tgt_pos,
size_t tgt_count,
size_t * num_src_per_tgt,
size_t * src_field_idx,
size_t * src_idx,
size_t num_src_fields )

Definition at line 131 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_weight_sum_mvp_at_src()

void yac_interpolation_add_weight_sum_mvp_at_src ( struct yac_interpolation * interp,
Xt_redist * halo_redists,
size_t tgt_count,
size_t * num_src_per_tgt,
double * weights,
size_t * src_field_idx,
size_t * src_idx,
size_t num_src_fields,
Xt_redist result_redist )

Definition at line 145 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_add_weight_sum_mvp_at_tgt()

void yac_interpolation_add_weight_sum_mvp_at_tgt ( struct yac_interpolation * interp,
Xt_redist * src_redists,
size_t * tgt_pos,
size_t tgt_count,
size_t * num_src_per_tgt,
double * weights,
size_t * src_field_idx,
size_t * src_idx,
size_t num_src_fields )

Definition at line 159 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_copy()

struct yac_interpolation * yac_interpolation_copy ( struct yac_interpolation * interp)

Definition at line 173 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_delete()

void yac_interpolation_delete ( struct yac_interpolation * interp)

Definition at line 345 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute()

void yac_interpolation_execute ( struct yac_interpolation * interp,
double *** src_fields,
double ** tgt_field )

Definition at line 226 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_execute_frac()

void yac_interpolation_execute_frac ( struct yac_interpolation * interp,
double *** src_fields,
double *** src_frac_masks,
double ** tgt_field )

Definition at line 203 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_get()

void yac_interpolation_execute_get ( struct yac_interpolation * interp,
double ** tgt_field )

Definition at line 282 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_get_async()

void yac_interpolation_execute_get_async ( struct yac_interpolation * interp,
double ** tgt_field )

Definition at line 293 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_get_test()

int yac_interpolation_execute_get_test ( struct yac_interpolation * interp)

Definition at line 316 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_put()

void yac_interpolation_execute_put ( struct yac_interpolation * interp,
double *** src_fields )

Definition at line 268 of file interpolation.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interpolation_execute_put_frac()

void yac_interpolation_execute_put_frac ( struct yac_interpolation * interp,
double *** src_fields,
double *** src_frac_masks )

Definition at line 245 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_put_test()

int yac_interpolation_execute_put_test ( struct yac_interpolation * interp)

Definition at line 304 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_execute_wait()

void yac_interpolation_execute_wait ( struct yac_interpolation * interp)

Definition at line 328 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_inc_ref_count()

void yac_interpolation_inc_ref_count ( struct yac_interpolation * interpolation)

Definition at line 334 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_new()

struct yac_interpolation * yac_interpolation_new ( size_t collection_size,
double frac_mask_fallback_value,
double scale_factor,
double scale_summand )

Definition at line 42 of file interpolation.c.

Here is the caller graph for this function:

◆ yac_interpolation_with_frac_mask()

int yac_interpolation_with_frac_mask ( struct yac_interpolation * interpolation)

Definition at line 339 of file interpolation.c.

Here is the caller graph for this function:

Variable Documentation

◆ YAC_FRAC_MASK_NO_VALUE

double const YAC_FRAC_MASK_NO_VALUE
extern

Definition at line 23 of file interpolation.c.

◆ YAC_FRAC_MASK_UNDEF

double const YAC_FRAC_MASK_UNDEF
extern

Definition at line 24 of file interpolation.c.