YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
weight_file_common.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 WEIGHT_FILE_COMMON_H
6#define WEIGHT_FILE_COMMON_H
7
8#ifndef YAC_CORE_H
9#include "location.h"
10#endif // YAC_CORE_H
11
38void write_weight_file(char const * file_name, int const * src_id,
39 int const * tgt_id, double const * weights,
40 unsigned num_links,
41 enum yac_location const * src_locations,
42 unsigned num_src_fields,
43 int const * num_links_per_src_field,
44 int * tgt_id_fixed, unsigned num_fixed_tgt,
45 double * fixed_values,
46 int * num_tgt_per_fixed_value,
47 unsigned num_fixed_values,
48 enum yac_location tgt_location,
49 char const * src_grid_name,
50 char const * tgt_grid_name);
51
64void write_cdo_weight_file(char const * file_name, int const * src_id,
65 int const * tgt_id, double const * weights,
66 unsigned num_links,
67 char const * src_grid_name,
68 char const * tgt_grid_name);
69
94void check_weight_file(char const * file_name, int const * ref_src_address,
95 int const * ref_tgt_address, double const * ref_weights,
96 unsigned ref_num_links,
97 enum yac_location const * ref_src_locations,
98 unsigned ref_num_src_fields,
99 int const * ref_num_links_per_src_field,
100 int const * ref_tgt_id_fixed,
101 double const * ref_fixed_values,
102 int const * ref_num_tgt_per_fixed_value,
103 unsigned ref_num_fixed_values,
104 enum yac_location ref_tgt_location,
105 char const * ref_src_grid_name,
106 char const * ref_tgt_grid_name);
107
108#endif // WEIGHT_FILE_COMMON_H
109
char const * file_name
yac_location
Definition location.h:12
char const src_grid_name[]
char const tgt_grid_name[]
unsigned ref_num_links
unsigned ref_num_fixed_values
int ref_src_address[4 *36]
double ref_weights[4 *36]
int const * ref_num_tgt_per_fixed_value
double const * ref_fixed_values
int ref_tgt_address[4 *36]
void write_cdo_weight_file(char const *file_name, int const *src_id, int const *tgt_id, double const *weights, unsigned num_links, char const *src_grid_name, char const *tgt_grid_name)
void check_weight_file(char const *file_name, int const *ref_src_address, int const *ref_tgt_address, double const *ref_weights, unsigned ref_num_links, enum yac_location const *ref_src_locations, unsigned ref_num_src_fields, int const *ref_num_links_per_src_field, int const *ref_tgt_id_fixed, double const *ref_fixed_values, int const *ref_num_tgt_per_fixed_value, unsigned ref_num_fixed_values, enum yac_location ref_tgt_location, char const *ref_src_grid_name, char const *ref_tgt_grid_name)
void write_weight_file(char const *file_name, int const *src_id, int const *tgt_id, double const *weights, unsigned num_links, enum yac_location const *src_locations, unsigned num_src_fields, int const *num_links_per_src_field, int *tgt_id_fixed, unsigned num_fixed_tgt, double *fixed_values, int *num_tgt_per_fixed_value, unsigned num_fixed_values, enum yac_location tgt_location, char const *src_grid_name, char const *tgt_grid_name)