示例#1
0
文件: node.c 项目: lothar-mar/swmm5
void  node_validate(int j)
//
//  Input:   j = node index
//  Output:  none
//  Purpose: validates a node's properties.
//
{
    TDwfInflow* inflow;

    // --- see if full depth was increased to accommodate conduit crown
    if ( Node[j].fullDepth > Node[j].oldDepth && Node[j].oldDepth > 0.0 )
    {
        report_writeWarningMsg(WARN02, Node[j].ID);
    }

    // --- check that initial depth does not exceed max. depth
    if ( Node[j].initDepth > Node[j].fullDepth + Node[j].surDepth )
        report_writeErrorMsg(ERR_NODE_DEPTH, Node[j].ID);

    if ( Node[j].type == DIVIDER ) divider_validate(j);

    // --- initialize dry weather inflows
    inflow = Node[j].dwfInflow;
    while (inflow)
    {
        inflow_initDwfInflow(inflow);
        inflow = inflow->next;
    }
}
示例#2
0
文件: node.c 项目: iut-ibk/DynaVIBe
void  node_validate(int j)
//
//  Input:   j = node index
//  Output:  none
//  Purpose: validates a node's properties.
//
{
    // --- see if full depth was increased to accommodate conduit crown        //(5.0.014 - LR)
    if ( Node[j].fullDepth > Node[j].oldDepth && Node[j].oldDepth > 0.0 )      //(5.0.014 - LR)
    {                                                                          //(5.0.014 - LR)
        report_writeWarningMsg(WARN02, Node[j].ID);                            //(5.0.015 - LR)
    }                                                                          //(5.0.014 - LR)

    // --- check that initial depth does not exceed max. depth
    if ( Node[j].initDepth > Node[j].fullDepth + Node[j].surDepth )
        report_writeErrorMsg(ERR_NODE_DEPTH, Node[j].ID);

    if ( Node[j].type == DIVIDER ) divider_validate(j);
}