additional edge-of-domain checks


git-svn-id: svn://svn.code.sf.net/p/elmerfem/code/trunk@6778 04224531-1f84-46d8-96ce-875b9e37dce3