vic/extensions/rout_rvic/src/vic_store_extension.c
void
initialize_state_file_rout_extension(char           *filename,
                                     nc_file_struct *nc_state_file)
{
    int status;

    // Add routing dimensions
    status = nc_def_dim(nc_state_file->nc_id, "outlet",
                        nc_state_file->outlet_size,
                        &(nc_state_file->outlet_dimid));
    check_nc_status(status, "Error defining outlet in %s", filename);

    status = nc_def_dim(nc_state_file->nc_id, "routing_timestep",
                        nc_state_file->routing_timestep_size,
                        &(nc_state_file->routing_timestep_dimid));
    check_nc_status(status, "Error defining routing_timestep in %s", filename);
}
/******************************************************************************
 * @brief   Initialize state file by creating dimensions, variables,
            and adding metadata.
 *****************************************************************************/
@brief   Initialize state file by creating dimensions, variables,
and adding metadata.
@brief Initialize state file by creating dimensions variables and adding metadata .
void
initialize_state_file_rout_extension(char           *filename,
                                     nc_file_struct *nc_state_file)
{
    int status;
    status = nc_def_dim(nc_state_file->nc_id, "outlet",
                        nc_state_file->outlet_size,
                        &(nc_state_file->outlet_dimid));
    check_nc_status(status, "Error defining outlet in %s", filename);
    status = nc_def_dim(nc_state_file->nc_id, "routing_timestep",
                        nc_state_file->routing_timestep_size,
                        &(nc_state_file->routing_timestep_dimid));
    check_nc_status(status, "Error defining routing_timestep in %s", filename);
}
void initialize_state_file_rout_extension ( char * filename , nc_file_struct * nc_state_file ) { int status ; status = nc_def_dim ( nc_state_file -> nc_id , " " , nc_state_file -> outlet_size , & ( nc_state_file -> outlet_dimid ) ) ; check_nc_status ( status , " " , filename ) ; status = nc_def_dim ( nc_state_file -> nc_id , " " , nc_state_file -> routing_timestep_size , & ( nc_state_file -> routing_timestep_dimid ) ) ; check_nc_status ( status , " " , filename ) ; }
@brief   Initialize state file by creating dimensions, variables,
and adding metadata.
@brief Initialize state file by creating dimensions variables and adding metadata .
// Add routing dimensions