SNOWPACK 20260217.97ebebde
Physically based, energy balance snow cover model
Loading...
Searching...
No Matches
MainControl Class Reference

#include <DataClasses.h>

Public Member Functions

 MainControl (const SnowpackConfig &cfg)
 
void getOutputControl (const mio::Date &step, const mio::Date &sno_step)
 Determine which outputs need to be done for the current time step.
 
void reset ()
 Reset all fields not read from the config file to zero or false.
 

Public Attributes

double tsstart
 Start time for time series dump (Julian)
 
double tsdaysbetween
 Interval (days) between time series dumps.
 
double profstart
 Start time for profile dump (Julian)
 
double profdaysbetween
 Interval (days) between profile dumps.
 
double first_backup
 Start time for first Xdata backup (Julian)
 
double backup_days_between
 Interval (days) between Xdata backups.
 
double calculation_step_length
 Length of each calculation step (minutes)
 
double sn_dt
 calculation step length in seconds
 
size_t nStep
 Time step number.
 
size_t nAvg
 Number of calculation time steps to average fluxes etc.
 
size_t HzStep
 Hazard step number (should be half of nStep in operational mode)
 
bool TsDump
 Flag for time series dump.
 
bool HzDump
 Calculation of hazard information will be performed.
 
bool PrDump
 Flag for profile dump.
 
bool XdataDump
 Backup of Xdata will be performed.
 
bool sdbDump
 Dump to data base if required in operational mode.
 
bool resFirstDump
 Flag to dump initial state of snowpack.
 

Constructor & Destructor Documentation

◆ MainControl()

MainControl::MainControl ( const SnowpackConfig cfg)

Member Function Documentation

◆ getOutputControl()

void MainControl::getOutputControl ( const mio::Date &  step,
const mio::Date &  sno_step 
)

Determine which outputs need to be done for the current time step.

Parameters
stepcurrent time integration step
sno_stepcurrent step in the sno files (current sno profile)

◆ reset()

void MainControl::reset ( )

Reset all fields not read from the config file to zero or false.

Member Data Documentation

◆ backup_days_between

double MainControl::backup_days_between

Interval (days) between Xdata backups.

◆ calculation_step_length

double MainControl::calculation_step_length

Length of each calculation step (minutes)

◆ first_backup

double MainControl::first_backup

Start time for first Xdata backup (Julian)

◆ HzDump

bool MainControl::HzDump

Calculation of hazard information will be performed.

◆ HzStep

size_t MainControl::HzStep

Hazard step number (should be half of nStep in operational mode)

◆ nAvg

size_t MainControl::nAvg

Number of calculation time steps to average fluxes etc.

◆ nStep

size_t MainControl::nStep

Time step number.

◆ PrDump

bool MainControl::PrDump

Flag for profile dump.

◆ profdaysbetween

double MainControl::profdaysbetween

Interval (days) between profile dumps.

◆ profstart

double MainControl::profstart

Start time for profile dump (Julian)

◆ resFirstDump

bool MainControl::resFirstDump

Flag to dump initial state of snowpack.

◆ sdbDump

bool MainControl::sdbDump

Dump to data base if required in operational mode.

◆ sn_dt

double MainControl::sn_dt

calculation step length in seconds

◆ tsdaysbetween

double MainControl::tsdaysbetween

Interval (days) between time series dumps.

◆ TsDump

bool MainControl::TsDump

Flag for time series dump.

◆ tsstart

double MainControl::tsstart

Start time for time series dump (Julian)

◆ XdataDump

bool MainControl::XdataDump

Backup of Xdata will be performed.


The documentation for this class was generated from the following files: