Fortran: Passing a member procedure to an external function
问题 How do I point to a type-bound procedure? Say that I have some external subroutine that takes as an argument a pointer to a function that accepts only one argument. call integrator(f0) This will work if the function f0 is defined somewhere so that it looks like function f0(x) result(val) ... do something... end function But now I have a type SomeClass with some type-bound procedures. One of these type-bound procedures is function integrand(this,x) result(val) class(SomeClass), intent(in) ::