Added checks to the algorithm for size.
Added checks to the algorithm for size.

Now it checks that the size of the phase and algorithm match together.

amdouglas/OpenPNM,PMEAL/OpenPNM,stadelmanma/OpenPNM,TomTranter/OpenPNM,amdouglas/OpenPNM