func Interface

interface
private subroutine func(me, x, f, funcs_to_compute)

Arguments

Type IntentOptional Attributes Name
class(numdiff_type), intent(inout) :: me
real(kind=wp), intent(in), dimension(:) :: x

array of variables (size n)

real(kind=wp), intent(out), dimension(:) :: f

array of functions (size m)

integer, intent(in), dimension(:) :: funcs_to_compute

the elements of the function vector that need to be computed (the other are ignored)

Description

The function (vector array of output functions f, computed from a vector of input variables x). This must be defined for all computations.