| 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 |
#pragma once |
| 12 |
|
| 13 |
#include "atlas/util/Config.h" |
| 14 |
|
| 15 |
namespace eckit { |
| 16 |
class PathName; |
| 17 |
} |
| 18 |
|
| 19 |
// ---------------------------------------------------------------------------- |
| 20 |
|
| 21 |
namespace atlas { |
| 22 |
namespace option { |
| 23 |
|
| 24 |
// ---------------------------------------------------------------------------- |
| 25 |
|
| 26 |
enum class FFT |
| 27 |
{ |
| 28 |
OFF = 0, |
| 29 |
FFT992 = 1, |
| 30 |
FFTW = 2, |
| 31 |
pocketfft = 3, |
| 32 |
}; |
| 33 |
|
| 34 |
// ---------------------------------------------------------------------------- |
| 35 |
|
| 36 |
class scalar_derivatives : public util::Config { |
| 37 |
public: |
| 38 |
scalar_derivatives(bool); |
| 39 |
}; |
| 40 |
|
| 41 |
// ---------------------------------------------------------------------------- |
| 42 |
|
| 43 |
class wind_EW_derivatives : public util::Config { |
| 44 |
public: |
| 45 |
wind_EW_derivatives(bool); |
| 46 |
}; |
| 47 |
|
| 48 |
// ---------------------------------------------------------------------------- |
| 49 |
|
| 50 |
class vorticity_divergence_fields : public util::Config { |
| 51 |
public: |
| 52 |
vorticity_divergence_fields(bool); |
| 53 |
}; |
| 54 |
|
| 55 |
// ---------------------------------------------------------------------------- |
| 56 |
|
| 57 |
class flt : public util::Config { |
| 58 |
public: |
| 59 |
flt(bool); |
| 60 |
}; |
| 61 |
|
| 62 |
// ---------------------------------------------------------------------------- |
| 63 |
|
| 64 |
class fft : public util::Config { |
| 65 |
public: |
| 66 |
fft(FFT); |
| 67 |
fft(const std::string&); |
| 68 |
}; |
| 69 |
|
| 70 |
class no_fft : public fft { |
| 71 |
public: |
| 72 |
no_fft(): fft(FFT::OFF) {} |
| 73 |
}; |
| 74 |
|
| 75 |
// ---------------------------------------------------------------------------- |
| 76 |
|
| 77 |
class split_y : public util::Config { |
| 78 |
public: |
| 79 |
split_y(bool); |
| 80 |
}; |
| 81 |
|
| 82 |
// ---------------------------------------------------------------------------- |
| 83 |
|
| 84 |
class write_legendre : public util::Config { |
| 85 |
public: |
| 86 |
write_legendre(const eckit::PathName&); |
| 87 |
}; |
| 88 |
|
| 89 |
// ---------------------------------------------------------------------------- |
| 90 |
|
| 91 |
class read_legendre : public util::Config { |
| 92 |
public: |
| 93 |
read_legendre(const eckit::PathName&); |
| 94 |
}; |
| 95 |
|
| 96 |
// ---------------------------------------------------------------------------- |
| 97 |
|
| 98 |
class write_fft : public util::Config { |
| 99 |
public: |
| 100 |
write_fft(const eckit::PathName&); |
| 101 |
}; |
| 102 |
|
| 103 |
// ---------------------------------------------------------------------------- |
| 104 |
|
| 105 |
class read_fft : public util::Config { |
| 106 |
public: |
| 107 |
read_fft(const eckit::PathName&); |
| 108 |
}; |
| 109 |
|
| 110 |
// ---------------------------------------------------------------------------- |
| 111 |
|
| 112 |
class nproma : public util::Config { |
| 113 |
public: |
| 114 |
nproma(int); |
| 115 |
}; |
| 116 |
|
| 117 |
// ---------------------------------------------------------------------------- |
| 118 |
|
| 119 |
class warning : public util::Config { |
| 120 |
public: |
| 121 |
warning(int = 1); |
| 122 |
}; |
| 123 |
|
| 124 |
// ---------------------------------------------------------------------------- |
| 125 |
|
| 126 |
} // namespace option |
| 127 |
} // namespace atlas |