FV3 Bundle
UnstructuredGrid.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017 UCAR
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  */
7 
8 #ifndef OOPS_GENERIC_UNSTRUCTUREDGRID_H_
9 #define OOPS_GENERIC_UNSTRUCTUREDGRID_H_
10 
11 #include <string>
12 #include <vector>
13 
14 #include <boost/noncopyable.hpp>
15 
16 #include "eckit/config/Configuration.h"
17 #include "oops/util/ObjectCounter.h"
18 #include "oops/util/Printable.h"
19 
20 namespace oops {
21 
22 // -----------------------------------------------------------------------------
23 
24 class UnstructuredGrid : public util::Printable,
25  private boost::noncopyable,
26  private util::ObjectCounter<UnstructuredGrid> {
27  public:
28  static const std::string classname() {return "oops::UnstructuredGrid";}
29 
32 
33 // Will be useful for tests
34  void zero();
35  void random();
36  double dot_product_with(const UnstructuredGrid &) const;
37 
38 // Will be useful for tests
39  int & toFortran() {return keyUGrid_;}
40  const int & toFortran() const {return keyUGrid_;}
41 
42  private:
43  void print(std::ostream &) const;
44 
45  int keyUGrid_;
46 };
47 
48 // -----------------------------------------------------------------------------
49 
50 } // namespace oops
51 
52 #endif // OOPS_GENERIC_UNSTRUCTUREDGRID_H_
static const std::string classname()
The namespace for the main oops code.
const int & toFortran() const
void print(std::ostream &) const
double dot_product_with(const UnstructuredGrid &) const