Alpine3D
Spatially distributed alpine surface processes model
Loading...
Searching...
No Matches
AlpineControl.h
Go to the documentation of this file.
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 ALPINECONTROL_H
19#define ALPINECONTROL_H
20
21#include <meteoio/MeteoIO.h>
22#include <snowpack/libsnowpack.h>
23
28#include <alpine3d/MeteoObj.h>
29#include <alpine3d/MPIControl.h>
30
48{
49 public:
51 SnowDriftA3D *mysnowdrift,
52 EnergyBalance *myeb,
53 const mio::Config& cfg,
54 const mio::DEMObject& in_dem);
55 void Run(mio::Date i_startdate, const unsigned int max_steps);
56 void setNoCompute(bool i_nocompute) {nocompute = i_nocompute;}
57
58 private:
59 const mio::DEMObject& dem;
60 MeteoObj meteo;
61
62 SnowpackInterface *snowpack;
63 SnowDriftA3D *snowdrift;
64 EnergyBalance *eb;
65 //DataAssimilation* da;
66 double snow_days_between;
67 bool nocompute, out_snow, correct_meteo_grids_HS; // no computation, only parse inputs (check mode)
68};
69
70#endif
Definition AlpineControl.h:48
void setNoCompute(bool i_nocompute)
Definition AlpineControl.h:56
void Run(mio::Date i_startdate, const unsigned int max_steps)
Definition AlpineControl.cc:47
Definition EnergyBalance.h:69
Definition MeteoObj.h:90
Definition SnowDrift.h:89
Definition SnowpackInterface.h:126