YAC 3.21.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 utest_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 utest_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 utest_check_weight_file(
95 char const * file_name, int const * ref_src_address,
96 int const * ref_tgt_address, double const * ref_weights,
97 unsigned ref_num_links,
98 enum yac_location const * ref_src_locations,
99 unsigned ref_num_src_fields,
100 int const * ref_num_links_per_src_field,
101 int const * ref_tgt_id_fixed,
102 double const * ref_fixed_values,
103 int const * ref_num_tgt_per_fixed_value,
104 unsigned ref_num_fixed_values,
105 enum yac_location ref_tgt_location,
106 char const * ref_src_grid_name,
107 char const * ref_tgt_grid_name);
108
109#endif // WEIGHT_FILE_COMMON_H
110
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]