fix boundary groups 1d structured domain