Laserfiche WebLink
<br />0".""'1 <br />I)Ulh)~,. <br /> <br />Reaches <br /> <br />. <br /> <br />II crss mass balance salinity - reaches <br /> <br />int Reach::solveMassBaISaltModel(Runlnfo 'runinfo, <br />MethodData 'methodData, <br />void 'clientData} <br /> <br />( <br /> <br />if (diversion> O.O) <br />if (!isValid(diversionSaltConc)} <br />diversionSaltConc = inflowSaltConc; <br />else <br />diversionSaltConc = 0.0; <br /> <br />if (returnFlowSaltConc.isAnyLinkO && <br />(lisValid(returnFlowSaltConc) ) ) <br />{ <br />return METHOD_SUCCESS; <br />} <br />else <br />returnFlowSaltConc = 0.0; <br /> <br />. <br /> <br />if (local Inflow > O.O) <br />{ <br />if (!isValid(locallnflowSaltConc)) <br />locallnflowSaltConc = 0.0; <br /> <br />} <br />else <br />locallnflowSaltConc = 0.0; <br /> <br />. <br /> <br />if (outflow <= 0.0) <br />outflowSaltConc = 0.0; <br />else <br />( <br />double rCsaltconc = getAvgSaltConcO; <br />double in_vol, Ii_vol, div_vol, loc_vol, ouevol; <br />UnitConv *unitConverter = PrsymSystem->getUnitConvO; <br />unitConverter->convert( return Flows , 1.0, FLOW, <br />revol, 1.0, VOLUME, getStepSeconds(}); <br />unitConverter->convert( inflow, 1.0, FLOW, <br />in_vol, 1.0, VOLUME, getStepSeconds(}); <br />unitConverter->convert( outflow, 1.0, FLOW, <br />out_vol, 1.0, VOLUME, getStepSeconds(}); <br />unitConverter->convert( diversion, 1.0, FLOW, <br />div_vol, 1.0, VOLUME, getStepSeconds(}); <br />. unitConverter->convert( locallnflow, 1.0, FLOW, <br />