YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
interp_weights_internal.h File Reference
Include dependency graph for interp_weights_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void yac_interp_weights_add_fixed (struct yac_interp_weights *weights, struct remote_points *tgts, double fixed_value)
 
void yac_interp_weights_add_wsum (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *num_src_per_tgt, struct remote_point *srcs, double *w)
 
void yac_interp_weights_add_sum (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *num_src_per_tgt, struct remote_point *srcs)
 
void yac_interp_weights_add_direct (struct yac_interp_weights *weights, struct remote_points *tgts, struct remote_point *srcs)
 
void yac_interp_weights_add_wsum_mf (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *num_src_per_field_per_tgt, struct remote_point **srcs_per_field, double *w, size_t num_src_fields)
 
void yac_interp_weights_add_sum_mf (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *num_src_per_field_per_tgt, struct remote_point **srcs_per_field, size_t num_src_fields)
 
void yac_interp_weights_add_direct_mf (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *src_field_indices, struct remote_point **srcs_per_field, size_t num_src_fields)
 
void yac_interp_weights_wcopy_weights (struct yac_interp_weights *weights, struct remote_points *tgts, size_t *num_stencils_per_tgt, size_t *stencil_indices, int *stencil_ranks, double *w)
 
MPI_Comm yac_interp_weights_get_comm (struct yac_interp_weights *weights)
 

Function Documentation

◆ yac_interp_weights_add_direct()

void yac_interp_weights_add_direct ( struct yac_interp_weights * weights,
struct remote_points * tgts,
struct remote_point * srcs )

adds targets that are to get single source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the value of a selected source point
[in]srcssources

Definition at line 416 of file interp_weights.c.

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

◆ yac_interp_weights_add_direct_mf()

void yac_interp_weights_add_direct_mf ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * src_field_indices,
struct remote_point ** srcs_per_field,
size_t num_src_fields )

adds targets that are to get single source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the value of a selected source point
[in]src_field_indicessource field indices of selected source point
[in]srcs_per_fieldsources per source field
[in]num_src_fieldsnumber of input source fields

Definition at line 440 of file interp_weights.c.

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

◆ yac_interp_weights_add_fixed()

void yac_interp_weights_add_fixed ( struct yac_interp_weights * weights,
struct remote_points * tgts,
double fixed_value )

adds targets that are to get a fixed value

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get a fixed value
[in]fixed_valuefixed value that is to be assigned to the provided targets

Definition at line 241 of file interp_weights.c.

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

◆ yac_interp_weights_add_sum()

void yac_interp_weights_add_sum ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * num_src_per_tgt,
struct remote_point * srcs )

adds targets that are to get a sum of source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the weighted sum
[in]num_src_per_tgtnumber of sources per target
[in]srcssources

Definition at line 369 of file interp_weights.c.

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

◆ yac_interp_weights_add_sum_mf()

void yac_interp_weights_add_sum_mf ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * num_src_per_field_per_tgt,
struct remote_point ** srcs_per_field,
size_t num_src_fields )

adds targets that are to get a sum of source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the sum
[in]num_src_per_field_per_tgtnumber of sources per target per source field
[in]srcs_per_fieldsources per source field
[in]num_src_fieldsnumber of input source fields
Remarks
num_src_per_field_per_tgt is a 1-D Array with the following data layout:
num_src_per_field_per_tgt[tgts->count][num_src_fields]

Definition at line 479 of file interp_weights.c.

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

◆ yac_interp_weights_add_wsum()

void yac_interp_weights_add_wsum ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * num_src_per_tgt,
struct remote_point * srcs,
double * w )

adds targets that are to get a weighted sum of source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the sum
[in]num_src_per_tgtnumber of sources per target
[in]srcssources
[in]wweights

Definition at line 263 of file interp_weights.c.

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

◆ yac_interp_weights_add_wsum_mf()

void yac_interp_weights_add_wsum_mf ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * num_src_per_field_per_tgt,
struct remote_point ** srcs_per_field,
double * w,
size_t num_src_fields )

adds targets that are to get a weighted sum of source values

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the weighted sum
[in]num_src_per_field_per_tgtnumber of sources per target per source field
[in]srcs_per_fieldsources per source field
[in]wweights
[in]num_src_fieldsnumber of input source fields
Remarks
num_src_per_field_per_tgt is a 1-D Array with the following data layout:
num_src_per_field_per_tgt[tgts->count][num_src_fields]

Definition at line 566 of file interp_weights.c.

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

◆ yac_interp_weights_get_comm()

MPI_Comm yac_interp_weights_get_comm ( struct yac_interp_weights * weights)

returns the MPI communicator used by weights

Parameters
[in]weightsinterpololation weights
Returns
MPI communicator used by weights

Definition at line 4867 of file interp_weights.c.

Here is the caller graph for this function:

◆ yac_interp_weights_wcopy_weights()

void yac_interp_weights_wcopy_weights ( struct yac_interp_weights * weights,
struct remote_points * tgts,
size_t * num_stencils_per_tgt,
size_t * stencil_indices,
int * stencil_ranks,
double * w )

adds targets whose stencil is the weighted sum of the copies of existing stencils

Parameters
[in]weightsinterpolation weights
[in]tgtstargets that get the weightes sum
[in]num_stencils_per_tgtnumber of stencils per target
[in]stencil_indicesindices of the stencils to be copied
[in]stencil_ranksranks of the processs owning the respective stencil
[in]wweights
Remarks
this call is collective

Definition at line 2530 of file interp_weights.c.

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