Alpine3D

Alpine3D Svn Source Tree

Root/trunk/alpine3d/snowdrift/checksum.h

1/***********************************************************************************/
2/* Copyright 2009-2015 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
3/***********************************************************************************/
4/* This file is part of Alpine3D.
5 Alpine3D is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Alpine3D is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with Alpine3D. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef CHECKSUM_H
19#define CHECKSUM_H
20
21#include <meteoio/MeteoIO.h>
22#include <snowpack/libsnowpack.h>
23#include <alpine3d/snowdrift/SnowDrift.h>
24
25double checksum(const CDoubleArray &x);
26double checksum(const CDoubleArray &x, int start, int step);
27
28double checksum(const CElementArray &x);
29double checksum(const mio::Array2D<double> &x);
30double checksum_rows(const mio::Array2D<double> &x, const size_t& from, size_t to);
31double checksum_cols(const mio::Array2D<double> &x, const size_t& from, size_t to);
32double checksum_c(const mio::Grid3DObject &grid);
33
34//data structures from Snowpack
35double checksum(const mio::Array1D<SnowStation> &x);
36double checksum(const std::vector<ElementData>& x, const size_t n);
37double checksum(const std::vector<NodeData>& x, const size_t n);
38double checksum(const CanopyData &x);
39
40#endif

Archive Download this file

Revision: HEAD