Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing of user data for callback procedure #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/example_hybrd.f90
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
!> -x(8) + (3-2*x(9))*x(9) = -1
program example_hybrd

use minpack_module, only: wp, hybrd, enorm, dpmpar
use minpack_legacy, only: hybrd
use minpack_module, only: wp, enorm, dpmpar
use iso_fortran_env, only: nwrite => output_unit

implicit none
Expand Down
3 changes: 2 additions & 1 deletion examples/example_hybrd1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
!> -x(8) + (3-2*x(9))*x(9) = -1
program example_hybrd1

use minpack_module, only: wp, hybrd1, dpmpar, enorm
use minpack_legacy, only: hybrd1
use minpack_module, only: wp, dpmpar, enorm
use iso_fortran_env, only: nwrite => output_unit

implicit none
Expand Down
3 changes: 2 additions & 1 deletion examples/example_lmder1.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
program example_lmder1

use minpack_module, only: wp, enorm, lmder1, chkder
use minpack_legacy, only: lmder1, chkder
use minpack_module, only: wp, enorm
use iso_fortran_env, only: nwrite => output_unit

implicit none
Expand Down
5 changes: 3 additions & 2 deletions examples/example_lmdif1.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
program example_lmdif1

use minpack_module, only: wp, enorm, lmdif1
use minpack_legacy, only: lmdif1
use minpack_module, only: wp, enorm
use iso_fortran_env, only: nwrite => output_unit

implicit none
Expand Down Expand Up @@ -56,4 +57,4 @@ subroutine fcn(m, n, x, fvec, iflag)

end subroutine fcn

end program example_lmdif1
end program example_lmdif1
3 changes: 2 additions & 1 deletion examples/example_primes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module find_fit_module
!! This module contains a general function find_fit() for a nonlinear least
!! squares fitting. The function can fit any nonlinear expression to any data.

use minpack_module, only: wp, lmdif1
use minpack_legacy, only: lmdif1
use minpack_module, only: wp

implicit none

Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ endif

srcs = files(
'src/minpack.f90',
'src/minpack_legacy.f90',
)
if get_option('api')
srcs += files('src/minpack_capi.f90')
Expand Down