Skip to content

Commit 18a7f67

Browse files
committed
Allow passing of user data for callback procedure
1 parent 281e9b9 commit 18a7f67

14 files changed

+1517
-189
lines changed

examples/example_hybrd.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
!> -x(8) + (3-2*x(9))*x(9) = -1
66
program example_hybrd
77

8-
use minpack_module, only: wp, hybrd, enorm, dpmpar
8+
use minpack_legacy, only: hybrd
9+
use minpack_module, only: wp, enorm, dpmpar
910
use iso_fortran_env, only: nwrite => output_unit
1011

1112
implicit none

examples/example_hybrd1.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
!> -x(8) + (3-2*x(9))*x(9) = -1
77
program example_hybrd1
88

9-
use minpack_module, only: wp, hybrd1, dpmpar, enorm
9+
use minpack_legacy, only: hybrd1
10+
use minpack_module, only: wp, dpmpar, enorm
1011
use iso_fortran_env, only: nwrite => output_unit
1112

1213
implicit none

examples/example_lmder1.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
program example_lmder1
22

3-
use minpack_module, only: wp, enorm, lmder1, chkder
3+
use minpack_legacy, only: lmder1, chkder
4+
use minpack_module, only: wp, enorm
45
use iso_fortran_env, only: nwrite => output_unit
56

67
implicit none

examples/example_lmdif1.f90

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
program example_lmdif1
22

3-
use minpack_module, only: wp, enorm, lmdif1
3+
use minpack_legacy, only: lmdif1
4+
use minpack_module, only: wp, enorm
45
use iso_fortran_env, only: nwrite => output_unit
56

67
implicit none
@@ -56,4 +57,4 @@ subroutine fcn(m, n, x, fvec, iflag)
5657

5758
end subroutine fcn
5859

59-
end program example_lmdif1
60+
end program example_lmdif1

examples/example_primes.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module find_fit_module
33
!! This module contains a general function find_fit() for a nonlinear least
44
!! squares fitting. The function can fit any nonlinear expression to any data.
55

6-
use minpack_module, only: wp, lmdif1
6+
use minpack_legacy, only: lmdif1
7+
use minpack_module, only: wp
78

89
implicit none
910

meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ endif
1616

1717
srcs = files(
1818
'src/minpack.f90',
19+
'src/minpack_legacy.f90',
1920
)
2021
if get_option('api')
2122
srcs += files('src/minpack_capi.f90')

0 commit comments

Comments
 (0)