I compiled your interpolation scheme successfully, but when I'm trying to use it with my mesh (1D mesh with 150 cells) I got a fatal error saying that 'attempt to read beyond EOF'. Did you experienced something similar with your code when using other mesh then the one in your test case? Im using the openFOAM.com distribution v2012.