Karthik R
Hello Surface integral is not a good way to ensure that your UDF is working. It is not a like to like comparison.
Why don't you plot the contours instead and see if your UDF is working correctly?
Btw, if your DEFINE_PROFILE is using an analytical expression, you might want to use the Fluent Expressions (much simpler to use).