jacobwilliams / PowellOpt

Optimization algorithms by M.J.D. Powell
Other
35 stars 7 forks source link

add intents in abstract interface func of newuoa_module #6

Open Beliavsky opened 2 years ago

Beliavsky commented 2 years ago

I suggest that the abstract interface look as follows:

    abstract interface
    subroutine func (n, x, f)  !! calfun interface
        import :: wp
        implicit none
        integer  , intent(in)  :: n
        real (wp), intent(in)  :: x (*)
        real (wp), intent(out) :: f
    end subroutine func
    end interface