PrescribedGradientBCWeak: implemented periodicity constraint in corners
and made various improvements.