Debian Codegraph @

src/atlas/option/TransOptions.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 #include <map>
12
13 #include "eckit/filesystem/PathName.h"
14
15 #include "atlas/option/TransOptions.h"
16
17 // ----------------------------------------------------------------------------
18
19 namespace atlas {
20 namespace option {
21
22 vorticity_divergence_fields::vorticity_divergence_fields(bool v) {
23 set("vorticity_divergence_fields", v);
24 }
25
26 wind_EW_derivatives::wind_EW_derivatives(bool v) {
27 set("wind_EW_derivatives", v);
28 }
29
30 scalar_derivatives::scalar_derivatives(bool v) {
31 set("scalar_derivatives", v);
32 }
33
34 flt::flt(bool flt) {
35 set("flt", flt);
36 }
37
38 fft::fft(FFT fft) {
39 static const std::map<FFT, std::string> FFT_to_string = {
40 {FFT::OFF, "OFF"}, {FFT::FFT992, "FFT992"}, {FFT::FFTW, "FFTW"}, {FFT::pocketfft, "pocketfft"}};
41 set("fft", FFT_to_string.at(fft));
42 }
43
44 fft::fft(const std::string& fft) {
45 set("fft", fft);
46 }
47
48 split_y::split_y(bool split_y) {
49 set("split_y", split_y);
50 }
51
52 write_legendre::write_legendre(const eckit::PathName& filepath) {
53 set("write_legendre", filepath);
54 }
55
56 read_legendre::read_legendre(const eckit::PathName& filepath) {
57 set("read_legendre", filepath);
58 }
59
60 write_fft::write_fft(const eckit::PathName& filepath) {
61 set("write_fft", filepath);
62 }
63
64 read_fft::read_fft(const eckit::PathName& filepath) {
65 set("read_fft", filepath);
66 }
67
68 nproma::nproma(int nproma) {
69 set("nproma", nproma);
70 }
71
72 warning::warning(int warning) {
73 set("warning", warning);
74 }
75
76 // ----------------------------------------------------------------------------
77
78 } // namespace option
79 } // namespace atlas