Alpine3D  Alpine3D-3.2.0
AlpineMain.cc File Reference
#include <exception>
#include <iostream>
#include <csignal>
#include <unistd.h>
#include <getopt.h>
#include <ctime>
#include <meteoio/MeteoIO.h>
#include <snowpack/libsnowpack.h>
#include <alpine3d/AlpineMain.h>
#include <alpine3d/AlpineControl.h>
#include <alpine3d/MPIControl.h>
#include <alpine3d/ebalance/EnergyBalance.h>
#include <alpine3d/snowdrift/SnowDrift.h>
#include <alpine3d/SnowpackInterface.h>
#include <alpine3d/DataAssimilation.h>

Functions

void Usage (char *prog)
 
void parseCmdLine (int argc, char **argv, Config &cfg)
 
void setStaticData (const Config &cfg, IOManager &io, DEMObject &dem, Grid2DObject &landuse, std::vector< Coords > &vec_pts)
 
void setModules (const Config &cfg, IOManager &io, const DEMObject &dem, const Grid2DObject &landuse, const std::vector< Coords > &vec_pts, SnowDriftA3D *&drift, EnergyBalance *&eb, SnowpackInterface *&snowpack, DataAssimilation *&da, Runoff *&runoff)
 
void cleanDestroyAll (SnowDriftA3D *&drift, EnergyBalance *&eb, SnowpackInterface *&snowpack, DataAssimilation *&da, Runoff *&runoff)
 
void start_message (int argc, char **argv)
 
void real_main (int argc, char **argv)
 
int main (int argc, char *argv[])
 

Variables

static int steps = 0
 
static Date startdate
 
static bool enable_eb =false
 
static bool enable_drift =false
 
static bool enable_runoff =false
 
static bool enable_da =false
 
static bool nocompute =false
 
static bool restart =false
 
static int npsnowpack =1
 
static int npebalance =1
 

Function Documentation

◆ cleanDestroyAll()

void cleanDestroyAll ( SnowDriftA3D *&  drift,
EnergyBalance *&  eb,
SnowpackInterface *&  snowpack,
DataAssimilation *&  da,
Runoff *&  runoff 
)
inline

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ parseCmdLine()

void parseCmdLine ( int  argc,
char **  argv,
Config &  cfg 
)
inline

◆ real_main()

void real_main ( int  argc,
char **  argv 
)
inline

◆ setModules()

void setModules ( const Config &  cfg,
IOManager &  io,
const DEMObject &  dem,
const Grid2DObject &  landuse,
const std::vector< Coords > &  vec_pts,
SnowDriftA3D *&  drift,
EnergyBalance *&  eb,
SnowpackInterface *&  snowpack,
DataAssimilation *&  da,
Runoff *&  runoff 
)
inline

◆ setStaticData()

void setStaticData ( const Config &  cfg,
IOManager &  io,
DEMObject &  dem,
Grid2DObject &  landuse,
std::vector< Coords > &  vec_pts 
)
inline

◆ start_message()

void start_message ( int  argc,
char **  argv 
)
inline

◆ Usage()

void Usage ( char *  prog)
inline

Variable Documentation

◆ enable_da

bool enable_da =false
static

◆ enable_drift

bool enable_drift =false
static

◆ enable_eb

bool enable_eb =false
static

◆ enable_runoff

bool enable_runoff =false
static

◆ nocompute

bool nocompute =false
static

◆ npebalance

int npebalance =1
static

◆ npsnowpack

int npsnowpack =1
static

◆ restart

bool restart =false
static

◆ startdate

Date startdate
static

◆ steps

int steps = 0
static