YetAnotherCoupler
3.2.0_a
Loading...
Searching...
No Matches
src
core
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
16
enum
yac_interp_spmap_weight_type
{
17
YAC_INTERP_SPMAP_AVG
= 0,
// simple average
18
YAC_INTERP_SPMAP_DIST
= 1,
// distance weighted
19
};
20
21
enum
yac_interp_spmap_scale_type
{
22
YAC_INTERP_SPMAP_NONE
= 0,
23
YAC_INTERP_SPMAP_SRCAREA
= 1,
25
YAC_INTERP_SPMAP_INVTGTAREA
= 2,
28
YAC_INTERP_SPMAP_FRACAREA
= 3,
32
};
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
65
struct
interp_method
*
yac_interp_method_spmap_new
(
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
interp_method.h
yac_interp_spmap_scale_type
yac_interp_spmap_scale_type
Definition
interp_method_spmap.h:21
YAC_INTERP_SPMAP_NONE
@ YAC_INTERP_SPMAP_NONE
weights are not scaled
Definition
interp_method_spmap.h:22
YAC_INTERP_SPMAP_INVTGTAREA
@ YAC_INTERP_SPMAP_INVTGTAREA
Definition
interp_method_spmap.h:25
YAC_INTERP_SPMAP_SRCAREA
@ YAC_INTERP_SPMAP_SRCAREA
Definition
interp_method_spmap.h:23
YAC_INTERP_SPMAP_FRACAREA
@ YAC_INTERP_SPMAP_FRACAREA
Definition
interp_method_spmap.h:28
yac_interp_method_spmap_new
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)
Definition
interp_method_spmap.c:631
yac_interp_spmap_weight_type
yac_interp_spmap_weight_type
Definition
interp_method_spmap.h:16
YAC_INTERP_SPMAP_AVG
@ YAC_INTERP_SPMAP_AVG
Definition
interp_method_spmap.h:17
YAC_INTERP_SPMAP_DIST
@ YAC_INTERP_SPMAP_DIST
Definition
interp_method_spmap.h:18
interp_method
Definition
interp_method_internal.h:22
Generated on Mon Apr 8 2024 08:41:02 for YetAnotherCoupler by
1.9.8