The INTENT of arguments fvec and fjac of subroutine FCN should be changed from OUT to IN OUT. As of now, when the subroutine is entered with iflag = 1, fjac becomes undefined; when entered with iflag = another value, fvec becomes undefined.
This subtle difference matters when flags such as NAG's -C=undefined or FTN95's /undef are used.
Reported by @xecej4:
The INTENT of arguments fvec and fjac of subroutine FCN should be changed from OUT to IN OUT. As of now, when the subroutine is entered with iflag = 1, fjac becomes undefined; when entered with iflag = another value, fvec becomes undefined.
This subtle difference matters when flags such as NAG's -C=undefined or FTN95's /undef are used.
Transferred from https://github.com/certik/minpack/issues/7