FV3 Bundle
GeometryQG.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 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 nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #include "eckit/config/Configuration.h"
12 #include "model/GeometryQG.h"
13 #include "model/QgFortran.h"
14 
15 // -----------------------------------------------------------------------------
16 namespace qg {
17 // -----------------------------------------------------------------------------
18 GeometryQG::GeometryQG(const eckit::Configuration & conf) {
19  const eckit::Configuration * configc = &conf;
20  qg_geo_setup_f90(keyGeom_, &configc);
21 }
22 // -----------------------------------------------------------------------------
24  const int key_geo = other.keyGeom_;
25  qg_geo_clone_f90(key_geo, keyGeom_);
26 }
27 // -----------------------------------------------------------------------------
30 }
31 // -----------------------------------------------------------------------------
33  return GeometryQGIterator(*this);
34 }
35 // -----------------------------------------------------------------------------
37  int nx = 0;
38  int ny = 0;
40  return GeometryQGIterator(*this, nx*ny+1);
41 }
42 // -----------------------------------------------------------------------------
43 void GeometryQG::print(std::ostream & os) const {
44  int nx;
45  int ny;
47  os << "nx = " << nx << ", ny = " << ny;
48 }
49 // -----------------------------------------------------------------------------
50 } // namespace qg
GeometryQG(const eckit::Configuration &)
Definition: GeometryQG.cc:18
F90geom keyGeom_
Definition: GeometryQG.h:51
void qg_geo_setup_f90(F90geom &, const eckit::Configuration *const *)
Interface to Fortran QG model.
void qg_geo_clone_f90(const F90geom &, F90geom &)
Definition: conf.py:1
integer, parameter nx
void qg_geo_info_f90(const F90geom &, int &, int &)
integer, parameter ny
void print(std::ostream &) const
Definition: GeometryQG.cc:43
GeometryQG handles geometry for QG model.
Definition: GeometryQG.h:33
void qg_geo_delete_f90(F90geom &)
GeometryQGIterator begin() const
Definition: GeometryQG.cc:32
The namespace for the qg model.
GeometryQGIterator end() const
Definition: GeometryQG.cc:36