Debian Codegraph @

src/atlas/util/GaussianLatitudes.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
8 * nor does it submit to any jurisdiction.
9 */
10
11 /// @file GaussianLatitudes.h
12 /// @author Willem Deconinck
13 /// @date Jan 2014
14
15 #pragma once
16
17 #include <cstddef>
18
19 namespace atlas {
20 namespace util {
21
22 /**
23 * @brief Compute gaussian latitudes between North pole and equator
24 * @param N [in] Number of latitudes between pole and equator (Gaussian
25 * N number)
26 * @param latitudes [out] latitudes in degrees
27 */
28 void gaussian_latitudes_npole_equator(const size_t N, double latitudes[]);
29
30 /**
31 * @brief Compute gaussian latitudes and quadrature weights between North pole
32 * and equator
33 * @param N [in] Number of latitudes between pole and equator (Gaussian
34 * N number)
35 * @param latitudes [out] latitudes in degrees
36 * @param weights [out] quadrature weights
37 */
38 void gaussian_quadrature_npole_equator(const size_t N, double latitudes[], double weights[]);
39
40 /**
41 * @brief Compute gaussian latitudes between North pole and South pole
42 * @param N [in] Number of latitudes between pole and equator (Gaussian
43 * N number)
44 * @param latitudes [out] latitudes in degrees (size 2*N)
45 */
46 void gaussian_latitudes_npole_spole(const size_t N, double latitudes[]);
47
48 /**
49 * @brief Compute gaussian latitudes and quadrature weights between North pole
50 * and South pole
51 * @param N [in] Number of latitudes between pole and equator (Gaussian
52 * N number)
53 * @param latitudes [out] latitudes in degrees (size 2*N)
54 * @param weights [out] quadrature weights (size 2*N)
55 */
56 void gaussian_quadrature_npole_spole(const size_t N, double latitudes[], double weights[]);
57
58 } // namespace util
59 } // namespace atlas