Debian Codegraph @

src/atlas/grid/detail/spacing/gaussian/N.cc

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 /// @author Willem Deconinck
12 /// @date Jan 2015
13
14
15 #include "atlas/grid/detail/spacing/gaussian/N.h"
16 #include "atlas/runtime/Exception.h"
17
18 namespace atlas {
19 namespace grid {
20 namespace spacing {
21 namespace gaussian {
22
23 #if 0
24 std ::string GaussianLatitudes::className() {
25 return "GaussianLatitudes";
26 }
27 #endif
28
29 void GaussianLatitudes::assign(double lats[], const size_t size) const {
30 ATLAS_ASSERT(size >= lats_.size());
31 for (size_t jlat = 0; jlat < lats_.size(); ++jlat) {
32 lats[jlat] = lats_[jlat];
33 }
34 }
35
36 void GaussianLatitudes::assign(std::vector<double>& lats) const {
37 lats = lats_;
38 }
39
40 template <typename CONCRETE>
41 void load() {
42 // eckit::ConcreteBuilderT0<GaussianLatitudes, CONCRETE> builder( "tmp" );
43 GaussianLatitudesBuilder<CONCRETE>();
44 }
45
46 void regist() {
47 load<N16>();
48 load<N24>();
49 load<N32>();
50 load<N48>();
51 load<N64>();
52 load<N80>();
53 load<N96>();
54 load<N128>();
55 load<N160>();
56 load<N200>();
57 load<N256>();
58 load<N320>();
59 load<N400>();
60 load<N512>();
61 load<N576>();
62 load<N640>();
63 load<N800>();
64 load<N1024>();
65 load<N1280>();
66 load<N1600>();
67 load<N2000>();
68 load<N4000>();
69 load<N8000>();
70 }
71
72 } // namespace gaussian
73 } // namespace spacing
74 } // namespace grid
75 } // namespace atlas