From e7f9e26347e4b24c7e2f70dea670af4a0201c098 Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Thu, 5 Oct 2023 14:59:10 -0400 Subject: [PATCH] Update validate.c --- src/validate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/validate.c b/src/validate.c index 379cad73..978d8f47 100644 --- a/src/validate.c +++ b/src/validate.c @@ -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; }