updated some variable names to make the code a bit more self-documenting

This commit is contained in:
Sam Hatchett
2013-09-30 16:28:12 -04:00
parent d1d03bf446
commit 10a5ae4cf6
9 changed files with 286 additions and 272 deletions

View File

@@ -99,9 +99,9 @@ int juncdata()
demand->Pat = p;
demand->next = Node[Njuncs].D;
Node[Njuncs].D = demand;
D[Njuncs] = y;
NodeDemand[Njuncs] = y;
}
else D[Njuncs] = MISSING;
else NodeDemand[Njuncs] = MISSING;
/*** end of update ***/
return(0);
} /* end of juncdata */
@@ -682,11 +682,11 @@ int demanddata()
/*** Updated 6/24/02 ***/
demand = Node[j].D;
if (demand && D[j] != MISSING)
if (demand && NodeDemand[j] != MISSING)
{
demand->Base = y;
demand->Pat = p;
D[j] = MISSING;
NodeDemand[j] = MISSING;
}
/*** End of update ***/