OOPS
qg_locs_f.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 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 "atlas/field.h"
9 #include "atlas/functionspace/PointCloud.h"
10 
11 #include "model/LocationsQG.h"
12 #include "model/qg_locs_f.h"
13 #include "oops/util/DateTime.h"
14 
15 namespace qg {
16 
17 // -----------------------------------------------------------------------------
19  return locs->size();
20 }
21 atlas::field::FieldImpl* qg_locs_lonlat_f90(qg::LocationsQG* locs) {
22  return locs->lonlat().get();
23 }
24 atlas::field::FieldImpl* qg_locs_altitude_f90(qg::LocationsQG* locs) {
25  return locs->altitude().get();
26 }
27 util::DateTime& qg_locs_times_f90(qg::LocationsQG* locs, size_t & idx) {
28  return locs->times(idx);
29 }
30 // -----------------------------------------------------------------------------
31 
32 } // namespace qg
qg::LocationsQG::size
int size() const
Definition: LocationsQG.h:47
qg
The namespace for the qg model.
Definition: qg/model/AnalyticInit.cc:13
qg::qg_locs_times_f90
util::DateTime & qg_locs_times_f90(qg::LocationsQG *locs, size_t &idx)
Definition: qg_locs_f.cc:27
qg::qg_locs_nlocs_f90
int qg_locs_nlocs_f90(qg::LocationsQG *locs)
Definition: qg_locs_f.cc:18
qg::LocationsQG::lonlat
atlas::Field lonlat() const
Definition: LocationsQG.h:49
qg::LocationsQG
LocationsQG class to handle locations for QG model.
Definition: LocationsQG.h:36
LocationsQG.h
qg::qg_locs_altitude_f90
atlas::field::FieldImpl * qg_locs_altitude_f90(qg::LocationsQG *locs)
Definition: qg_locs_f.cc:24
qg::LocationsQG::times
util::DateTime & times(size_t idx)
Definition: LocationsQG.h:51
qg::qg_locs_lonlat_f90
atlas::field::FieldImpl * qg_locs_lonlat_f90(qg::LocationsQG *locs)
Definition: qg_locs_f.cc:21
qg::LocationsQG::altitude
atlas::Field & altitude()
Definition: LocationsQG.h:50
qg_locs_f.h