Merge pull request #729 from jamesuber/adjustpumpparams-bugfix

Adjustpumpparams bugfix
This commit is contained in:
Jim Uber
2023-05-04 16:50:15 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -4134,6 +4134,7 @@ int DLLEXPORT EN_setlinkvalue(EN_Project p, int index, int property, double valu
if (curveIndex < 0 || curveIndex > net->Ncurves) return 206;
Link[index].Kc = curveIndex;
}
break;
default:
return 251;

View File

@@ -1074,7 +1074,7 @@ int adjustpumpparams(Project *pr, int curveIndex)
{
// Update its head curve parameters
pump->Ptype = NOCURVE;
err = updatepumpparams(pr, curveIndex);
err = updatepumpparams(pr, j);
if (err > 0) break;
// Convert parameters to internal units