/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergovernmental organisation * nor does it submit to any jurisdiction. */ /// @author Willem Deconinck /// @date Mar 2016 #include "N.h" #include "atlas/runtime/Exception.h" namespace atlas { namespace grid { namespace detail { namespace pl { namespace classic_gaussian { void PointsPerLatitude::assign(long nlon[], const size_t size) const { ATLAS_ASSERT(size >= nlon_.size()); for (size_t jlat = 0; jlat < nlon_.size(); ++jlat) { nlon[jlat] = nlon_[jlat]; } } void PointsPerLatitude::assign(int nlon[], const size_t size) const { ATLAS_ASSERT(size >= nlon_.size()); for (size_t jlat = 0; jlat < nlon_.size(); ++jlat) { nlon[jlat] = nlon_[jlat]; } } void PointsPerLatitude::assign(std::vector& nlon) const { nlon = nlon_; } void PointsPerLatitude::assign(std::vector& nlon) const { nlon.assign(nlon_.begin(), nlon_.end()); } template void load() { PointsPerLatitudeBuilder(); } void regist() { load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); load(); } } // namespace classic_gaussian } // namespace pl } // namespace detail } // namespace grid } // namespace atlas