I'm trying to define a function in my module code and call it in the main fortran code but when I want to compile my code I'm receiving this error :
This actual argument must be the name of an external user function or the name of an intrinsic function.
and my function is :
Function func (x)
implicit none
double precision func,x
func=x
RETURN
end function func
and in the main code
call Romberg (dra,func,ra(mm),ra(kk))
I want to measure the destance between ra(mm)
& ra(kk)