gsBound function

Boundary derivation - low level