YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
interp_weights.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef INTERP_WEIGHTS_H
6#define INTERP_WEIGHTS_H
7
8#include "yac_types.h"
9#include "location.h"
10#include "interpolation.h"
11
12// YAC PUBLIC HEADER START
13
22
24
34 MPI_Comm comm, enum yac_location tgt_location,
36
51 struct yac_interp_weights * weights, char const * filename,
52 char const * src_grid_name, char const * tgt_grid_name,
53 size_t src_grid_size, size_t tgt_grid_size);
54
78 struct yac_interp_weights * weights,
81 double scaling_factor, double scaling_summand,
82 char const * yaxt_exchanger_name);
83
90 struct yac_interp_weights * weights);
91
99 struct yac_interp_weights * weights);
100
105void yac_interp_weights_delete(struct yac_interp_weights * weights);
106
107// YAC PUBLIC HEADER STOP
108
109#endif // INTERP_WEIGHTS_H
void yac_interp_weights_delete(struct yac_interp_weights *weights)
yac_int * yac_interp_weights_get_interp_tgt(struct yac_interp_weights *weights)
void yac_interp_weights_write_to_file(struct yac_interp_weights *weights, char const *filename, char const *src_grid_name, char const *tgt_grid_name, size_t src_grid_size, size_t tgt_grid_size)
struct yac_interpolation * yac_interp_weights_get_interpolation(struct yac_interp_weights *weights, enum yac_interp_weights_reorder_type reorder, size_t collection_size, double frac_mask_fallback_value, double scaling_factor, double scaling_summand, char const *yaxt_exchanger_name)
yac_interp_weights_reorder_type
@ YAC_MAPPING_ON_TGT
weights will be applied at target processes
@ YAC_MAPPING_ON_SRC
weights will be appied at source processes
struct yac_interp_weights * yac_interp_weights_new(MPI_Comm comm, enum yac_location tgt_location, enum yac_location *src_locations, size_t num_src_fields)
size_t yac_interp_weights_get_interp_count(struct yac_interp_weights *weights)
yac_location
Definition location.h:12
enum yac_location tgt_location
enum yac_location * src_locations
double frac_mask_fallback_value
Xt_int yac_int
Definition yac_types.h:15