YetAnotherCoupler 3.2.0
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
75 struct yac_interp_weights * weights,
78 double scaling_factor, double scaling_summand);
79
86 struct yac_interp_weights * weights);
87
95 struct yac_interp_weights * weights);
96
101void yac_interp_weights_delete(struct yac_interp_weights * weights);
102
103// YAC PUBLIC HEADER STOP
104
105#endif // INTERP_WEIGHTS_H
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)
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)
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