Debian Codegraph @

src/atlas/grid/detail/spacing/FocusSpacing.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 #pragma once
12
13 #include <string>
14
15 #include "atlas/grid/detail/spacing/Spacing.h"
16
17 namespace atlas {
18 namespace grid {
19 namespace spacing {
20
21 class FocusSpacing : public Spacing {
22 public:
23 // constructor
24 FocusSpacing(const eckit::Parametrisation& p);
25
26 // class name
27 static std::string static_type() { return "focus"; }
28 virtual std::string type() const { return static_type(); }
29
30 virtual Spec spec() const;
31
32 private:
33 double focus_factor_;
34 double start_;
35 double end_;
36 };
37
38 } // namespace spacing
39 } // namespace grid
40 } // namespace atlas