Laserfiche WebLink
<br />OjJ58~ <br /> <br />. <br /> <br />if (returnFlowSaltPickup >= 0.0 ) <br />( <br />returnFlowSaltConc = concentrated + returnFlowSaltPickup; <br />return METHOD_SUCCESS; <br />} <br />else <br />( <br /> <br />II an infamous wqip - need to see if the river has enough salt to <br />II satisfy a hungry wqip - if not, send the river an Iou <br />II a wqip can not be linked to a reservoir for this to work <br />II if we need a wqip hooked to a reservoir, we'll have to add <br />II a minSaltConc slot to the reservoir objects <br />II Cjlternatively, we could create a minSaltConc here and <br />II not use the linking process <br /> <br />II note - crss added the concentrating affect in but the numbers were <br />II skewed so that the concentrating affect was minimal <br />II they probably intended it to be nothing <br />II for testing purposes, will leave in for now <br /> <br />. <br /> <br />double mass_requested, mass_that_can_be; <br />double riv_inflow ; <br />double riv_minimum = 50.0; <br />TableSlot 'riv_minSlot; <br />SeriesSlot 'rinSlot; <br />SimObj* reachptr; <br /> <br />II in case we don't resolve below, assign to the concentrated value ??? <br /> <br />returnFlowSaltConc = concentrated; <br />retu rn FlowSaltDe bt = retu rnFlowSaltDebt( -1 ); <br />mass_requested = -1.0' (revol' returnFlowSaltPickup); <br /> <br />II get reach of river that we're hooked to <br /> <br />SeriesSlot * reachptrReturnFlows = <br />(SeriesSlot ') totaIReturnFlows.firstOutSlotO; <br />reachptr = reachptrReturnFlows->getSimObjO; <br /> <br />II verify that user hooked return flow to a reach or reach segment <br /> <br />. <br /> <br />if (!(reachptr->getTypeO == "ReachSegment") && <br />!(reachptr->getTypeO == "Reach")) <br />prsymerror("WOIP must be linked to a Reach or Reach Segment\ <br /> <br />n"); <br />