Done. I changed the return value to std_cxx1x::array<double,dim>, the argument to (const dealii::Point<dim,double> &position) and made the function static in the .h file