Merge pull request #694 from OpenWaterAnalytics/dev-prv-psv-fix

Preserves network connectivity across an active PSV
This commit is contained in:
Lew Rossman
2022-08-08 14:31:12 -04:00
committed by GitHub

View File

@@ -1035,6 +1035,8 @@ void psvcoeff(Project *pr, int k, int n1, int n2)
{
sm->F[j] += hyd->Xflow[n1];
}
sm->Aij[sm->Ndx[k]] -= 1.0 / CBIG; // Preserve connectivity
sm->Aii[j] += 1.0 / CBIG;
return;
}