Re: What is the correct interface for a function or subprogram passed as an argument?



On 13 aug, 10:55, lcn.uic....@xxxxxxxxx wrote:
Dear People,

I was wondering how to write the interface for a subroutine that
calculates the gradient
of an arbitrary function of a general vector argument x, whose
dimension should be left
open (for each specific instance being called). I tried the following
interfaces, but they
do not work.

I can see nothing wrong with these code fragments. They describe
a function or a subroutine that take an array of reals as input and
return a real value.

What is happening? What is not working properly? Is it the compiler
that complains?

Regards,

Arjen
.



Relevant Pages