Fixed pressure change

Fixed the pressure change adding condition for right flag, and changed
some stuff in SOR