Debian Codegraph @

src/atlas/util/function/MDPI_functions.h

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation nor
8 * does it submit to any jurisdiction.
9 */
10
11
12 #pragma once
13
14 namespace atlas {
15
16 namespace util {
17
18 namespace function {
19
20 /// \brief Analytic functions from MDPI paper on regridding
21 ///
22 /// \detailed The formula is found in
23 /// "Benchmarking Regridding Libraries Used in Earth System Modelling"
24 /// by Sophie Valcke, Andreas Piacentini, Gabriel Jonville, MDPI 2022
25 /// as the sinusoid analytical function in Sec 2.1.2.
26 /// The longitude (lon) and latitude (lat) are assumed to be in degrees,
27 ///
28 double MDPI_sinusoid(double lon, double lat);
29 double MDPI_harmonic(double lon, double lat);
30 double MDPI_vortex(double lon, double lat);
31 double MDPI_gulfstream(double lon, double lat);
32
33 extern "C" {
34 double atlas__functions__MDPI_sinusoid(double& lon, double& lat);
35 double atlas__functions__MDPI_harmonic(double& lon, double& lat);
36 double atlas__functions__MDPI_vortex(double& lon, double& lat);
37 double atlas__functions__MDPI_gulfstream(double& lon, double& lat);
38 }
39
40 } // namespace function
41
42 } // namespace util
43
44 } // namespace atlas