Fixed a bunch of bugs in flux calculations. Kinda works.
Fixed a bunch of bugs in flux calculations. Kinda works.

polymec/polyamri-dev,jjphatt/polyamri-dev,jjphatt/polyamri-dev,jjphatt/polyamri-dev,jjphatt/polyamri-dev,polymec/polyamri-dev,polymec/polyamri-dev