Added boundary condition to mass flow calculator