Skip to content

Commit

Permalink
Update validate.c
Browse files Browse the repository at this point in the history
  • Loading branch information
LRossman committed Oct 5, 2023
1 parent 653ffac commit e7f9e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ int customcurvepump(Project *pr, Spump *pump, Scurve *curve)
return 227;
}
}
pump->Qmax = curve->X[npts - 1] / pr->Ucf[FLOW];
pump->Qmax = curve->X[npts - 1];
pump->Q0 = (curve->X[0] + pump->Qmax) / 2.0 / pr->Ucf[FLOW];
pump->Qmax /= pr->Ucf[FLOW];
pump->Hmax = curve->Y[0] / pr->Ucf[HEAD];
return 0;
}
Expand Down

0 comments on commit e7f9e26

Please sign in to comment.