Alpine3D 20241222.625fd38
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, const DEMObject &dem, const Grid2DObject &landuse, const std::vector< Coords > &vec_pts, SnowDriftA3D *&drift, EnergyBalance *&eb, SnowpackInterface *&snowpack)
 
void cleanDestroyAll (SnowDriftA3D *&drift, EnergyBalance *&eb, SnowpackInterface *&snowpack)
 
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 restart =false
 
static int npsnowpack =1
 
static int npebalance =1
 

Function Documentation

◆ cleanDestroyAll()

void cleanDestroyAll ( SnowDriftA3D *&  drift,
EnergyBalance *&  eb,
SnowpackInterface *&  snowpack 
)
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,
const DEMObject &  dem,
const Grid2DObject &  landuse,
const std::vector< Coords > &  vec_pts,
SnowDriftA3D *&  drift,
EnergyBalance *&  eb,
SnowpackInterface *&  snowpack 
)
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

◆ npebalance

int npebalance =1
static

◆ npsnowpack

int npsnowpack =1
static

◆ restart

bool restart =false
static

◆ startdate

Date startdate
static

◆ steps

int steps = 0
static