Fix error message condition from last commit
Allow different element sizes in boundarie conditions