YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
interp_method_spmap.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_METHOD_SPMAP_H
6#define INTERP_METHOD_SPMAP_H
7
8#include "interp_method.h"
9
10// YAC PUBLIC HEADER START
11
17 YAC_INTERP_SPMAP_AVG = 0, // simple average
18 YAC_INTERP_SPMAP_DIST = 1, // distance weighted
19};
20
33
34#define YAC_INTERP_SPMAP_SPREAD_DISTANCE_DEFAULT (0.0)
35#define YAC_INTERP_SPMAP_MAX_SEARCH_DISTANCE_DEFAULT (0.0)
36#define YAC_INTERP_SPMAP_WEIGHTED_DEFAULT (0)
37#define YAC_INTERP_SPMAP_SCALE_DEFAULT (0)
38#define YAC_INTERP_SPMAP_SRC_SPHERE_RADIUS_DEFAULT (1.0)
39#define YAC_INTERP_SPMAP_TGT_SPHERE_RADIUS_DEFAULT (1.0)
40
66 double spread_distance, double max_search_distance,
67 enum yac_interp_spmap_weight_type weight_type,
68 enum yac_interp_spmap_scale_type scale_type,
69 double src_sphere_radius, double tgt_sphere_radius);
70
71// YAC PUBLIC HEADER STOP
72
73#endif // INTERP_METHOD_SPMAP_H
yac_interp_spmap_scale_type
@ YAC_INTERP_SPMAP_NONE
weights are not scaled
@ YAC_INTERP_SPMAP_INVTGTAREA
@ YAC_INTERP_SPMAP_SRCAREA
@ YAC_INTERP_SPMAP_FRACAREA
struct interp_method * yac_interp_method_spmap_new(double spread_distance, double max_search_distance, enum yac_interp_spmap_weight_type weight_type, enum yac_interp_spmap_scale_type scale_type, double src_sphere_radius, double tgt_sphere_radius)
yac_interp_spmap_weight_type
@ YAC_INTERP_SPMAP_AVG
@ YAC_INTERP_SPMAP_DIST