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
30
UnstructuredGrid
();
31
~UnstructuredGrid
();
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_
oops::UnstructuredGrid::keyUGrid_
int keyUGrid_
Definition:
UnstructuredGrid.h:45
oops::UnstructuredGrid::classname
static const std::string classname()
Definition:
UnstructuredGrid.h:28
oops::UnstructuredGrid::toFortran
int & toFortran()
Definition:
UnstructuredGrid.h:39
oops::UnstructuredGrid::zero
void zero()
Definition:
UnstructuredGrid.cc:23
oops::UnstructuredGrid::UnstructuredGrid
UnstructuredGrid()
Definition:
UnstructuredGrid.cc:15
oops
The namespace for the main oops code.
Definition:
ErrorCovarianceFV3JEDI.h:24
oops::UnstructuredGrid::random
void random()
Definition:
UnstructuredGrid.cc:26
oops::UnstructuredGrid::toFortran
const int & toFortran() const
Definition:
UnstructuredGrid.h:40
oops::UnstructuredGrid
Definition:
UnstructuredGrid.h:24
oops::UnstructuredGrid::~UnstructuredGrid
~UnstructuredGrid()
Definition:
UnstructuredGrid.cc:19
oops::UnstructuredGrid::print
void print(std::ostream &) const
Definition:
UnstructuredGrid.cc:34
oops::UnstructuredGrid::dot_product_with
double dot_product_with(const UnstructuredGrid &) const
Definition:
UnstructuredGrid.cc:29
src
fv3-bundle
oops
src
oops
generic
UnstructuredGrid.h
Generated on Tue Nov 6 2018 11:39:46 for FV3 Bundle by
1.8.14