FV3-JEDI
GeometryIterator.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 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 #include "eckit/config/Configuration.h"
11 #include "oops/util/Logger.h"
12 
13 // -----------------------------------------------------------------------------
14 
15 namespace fv3jedi {
16 
17 
18 // -----------------------------------------------------------------------------
19 
21  geom_(iter.geom_)
22 {
24 }
25 
26 // -----------------------------------------------------------------------------
27 
29  const int & iindex, const int & jindex):
30  geom_(geom)
31 {
33 }
34 
35 
36 // -----------------------------------------------------------------------------
37 
40 }
41 
42 // -----------------------------------------------------------------------------
43 
45  int equals = 0;
47  return (equals == 1);
48 }
49 
50 // -----------------------------------------------------------------------------
51 
53  int equals = 0;
55  return (equals == 0);
56 }
57 
58 // -----------------------------------------------------------------------------
59 
60 eckit::geometry::Point2 GeometryIterator::operator*() const {
61  double lat, lon;
63  return eckit::geometry::Point2(lon, lat);
64 }
65 
66 // -----------------------------------------------------------------------------
67 
70  return *this;
71 }
72 
73 // -----------------------------------------------------------------------------
74 
75 void GeometryIterator::print(std::ostream & os) const {
76  double lat, lon;
78  os << "GeometryIterator, lat/lon: " << lat << " / " << lon << std::endl;
79 }
80 
81 // -----------------------------------------------------------------------------
82 
83 } // namespace fv3jedi
fv3jedi::GeometryIterator::operator*
eckit::geometry::Point2 operator*() const
Definition: GeometryIterator.cc:60
fv3jedi::GeometryIterator::print
void print(std::ostream &) const
Definition: GeometryIterator.cc:75
fv3jedi::GeometryIterator::geom_
const Geometry & geom_
Definition: GeometryIterator.h:51
fv3jedi::GeometryIterator::GeometryIterator
GeometryIterator(const GeometryIterator &)
Definition: GeometryIterator.cc:20
fv3jedi::Geometry::toFortran
F90geom & toFortran()
Definition: Geometry.h:53
fv3jedi::GeometryIterator::operator==
bool operator==(const GeometryIterator &) const
Definition: GeometryIterator.cc:44
GeometryIterator.h
fv3jedi::GeometryIterator::operator++
GeometryIterator & operator++()
Definition: GeometryIterator.cc:68
fv3jedi::fv3jedi_geom_iter_equals_f90
void fv3jedi_geom_iter_equals_f90(const F90iter &, const F90iter &, int &)
fv3jedi::fv3jedi_geom_iter_delete_f90
void fv3jedi_geom_iter_delete_f90(F90iter &)
fv3jedi::GeometryIterator::keyIter_
F90iter keyIter_
Definition: GeometryIterator.h:50
fv3jedi::GeometryIterator::~GeometryIterator
~GeometryIterator()
Definition: GeometryIterator.cc:38
GeometryIterator.interface.h
fv3jedi::GeometryIterator::operator!=
bool operator!=(const GeometryIterator &) const
Definition: GeometryIterator.cc:52
fv3jedi::Geometry
Geometry handles geometry for FV3JEDI model.
Definition: Geometry.h:41
fv3jedi::fv3jedi_geom_iter_next_f90
void fv3jedi_geom_iter_next_f90(const F90iter &)
fv3jedi::fv3jedi_geom_iter_setup_f90
void fv3jedi_geom_iter_setup_f90(F90iter &, const F90geom &, const int &, const int &)
fv3jedi::fv3jedi_geom_iter_clone_f90
void fv3jedi_geom_iter_clone_f90(F90iter &, const F90iter &)
fv3jedi::GeometryIterator
Definition: GeometryIterator.h:30
fv3jedi
Configuration files should be formatted as e.g.
Definition: ErrorCovariance.cc:20
fv3jedi::fv3jedi_geom_iter_current_f90
void fv3jedi_geom_iter_current_f90(const F90iter &, double &, double &)
fv3jedi::GeometryIterator::toFortran
F90iter & toFortran()
Definition: GeometryIterator.h:45