vic/drivers/shared_all/src/initialize_global.c
void
initialize_global()
{
    extern global_param_struct global_param;

    size_t                     i;

    global_param.dt = MISSING;
    global_param.snow_dt = MISSING;
    global_param.runoff_dt = MISSING;
    global_param.atmos_dt = MISSING;
    global_param.model_steps_per_day = 0;
    global_param.snow_steps_per_day = 0;
    global_param.runoff_steps_per_day = 0;
    global_param.atmos_steps_per_day = 0;
    global_param.nrecs = 0;
    global_param.startyear = 0;
    global_param.startmonth = 0;
    global_param.startday = 0;
    global_param.startsec = 0;
    global_param.endyear = 0;
    global_param.endmonth = 0;
    global_param.endday = 0;
    global_param.resolution = MISSING;
    global_param.wind_h = 10.0;
    for (i = 0; i < 2; i++) {
        global_param.forceyear[i] = 0;
        global_param.forcemonth[i] = 1;
        global_param.forceday[i] = 1;
        global_param.forcesec[i] = 0;
        global_param.forceskip[i] = 0;
        global_param.forceoffset[i] = 0;
    }
    global_param.stateyear = 0;
    global_param.statemonth = 0;
    global_param.stateday = 0;
    global_param.statesec = 0;
    global_param.calendar = CALENDAR_STANDARD;
    global_param.time_units = TIME_UNITS_DAYS;
    global_param.time_origin_num = MISSING;
}
/******************************************************************************
 * @brief    Initialize all global parameters before they are called by the
 *           model.
 *****************************************************************************/
@brief    Initialize all global parameters before they are called by the
model.
@brief Initialize all global parameters before they are called by the model .
void
initialize_global()
{
    extern global_param_struct global_param;
    size_t                     i;
    global_param.dt = MISSING;
    global_param.snow_dt = MISSING;
    global_param.runoff_dt = MISSING;
    global_param.atmos_dt = MISSING;
    global_param.model_steps_per_day = 0;
    global_param.snow_steps_per_day = 0;
    global_param.runoff_steps_per_day = 0;
    global_param.atmos_steps_per_day = 0;
    global_param.nrecs = 0;
    global_param.startyear = 0;
    global_param.startmonth = 0;
    global_param.startday = 0;
    global_param.startsec = 0;
    global_param.endyear = 0;
    global_param.endmonth = 0;
    global_param.endday = 0;
    global_param.resolution = MISSING;
    global_param.wind_h = 10.0;
    for (i = 0; i < 2; i++) {
        global_param.forceyear[i] = 0;
        global_param.forcemonth[i] = 1;
        global_param.forceday[i] = 1;
        global_param.forcesec[i] = 0;
        global_param.forceskip[i] = 0;
        global_param.forceoffset[i] = 0;
    }
    global_param.stateyear = 0;
    global_param.statemonth = 0;
    global_param.stateday = 0;
    global_param.statesec = 0;
    global_param.calendar = CALENDAR_STANDARD;
    global_param.time_units = TIME_UNITS_DAYS;
    global_param.time_origin_num = MISSING;
}
void initialize_global ( ) { extern global_param_struct global_param ; size_t i ; global_param . dt = MISSING ; global_param . snow_dt = MISSING ; global_param . runoff_dt = MISSING ; global_param . atmos_dt = MISSING ; global_param . model_steps_per_day = 0 ; global_param . snow_steps_per_day = 0 ; global_param . runoff_steps_per_day = 0 ; global_param . atmos_steps_per_day = 0 ; global_param . nrecs = 0 ; global_param . startyear = 0 ; global_param . startmonth = 0 ; global_param . startday = 0 ; global_param . startsec = 0 ; global_param . endyear = 0 ; global_param . endmonth = 0 ; global_param . endday = 0 ; global_param . resolution = MISSING ; global_param . wind_h = 10.0 ; for ( i = 0 ; i < 2 ; i ++ ) { global_param . forceyear [ i ] = 0 ; global_param . forcemonth [ i ] = 1 ; global_param . forceday [ i ] = 1 ; global_param . forcesec [ i ] = 0 ; global_param . forceskip [ i ] = 0 ; global_param . forceoffset [ i ] = 0 ; } global_param . stateyear = 0 ; global_param . statemonth = 0 ; global_param . stateday = 0 ; global_param . statesec = 0 ; global_param . calendar = CALENDAR_STANDARD ; global_param . time_units = TIME_UNITS_DAYS ; global_param . time_origin_num = MISSING ; }
@brief    Initialize all global parameters before they are called by the
           model.
@brief Initialize all global parameters before they are called by the model .