Made number of ports in mixingvolume dependant on allowFlowReversal. This prevents wrong enthalpies from being calculated when the flow is being reversed.