Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Jan 24, 2024
1 parent 1e15b28 commit 118325d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/nlesolver_module.F90
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ module nlesolver_module
real(wp) :: damp = zero !! damp parameter for LSQR

! LUSOL parameters:
integer :: lusol_method = 0
integer :: lusol_method = 0 !! * 0 => TPP: Threshold Partial Pivoting.
!! * 1 => TRP: Threshold Rook Pivoting.
!! * 2 => TCP: Threshold Complete Pivoting.

! dense version:
procedure(grad_func),pointer :: grad => null() !! user-supplied routine to compute the gradient of the function (dense version)
Expand Down Expand Up @@ -377,7 +379,11 @@ subroutine initialize_nlesolver_variables(me,&
real(wp),intent(in),optional :: damp !! `LSQR`: damp factor
integer,intent(in),optional :: itnlim !! `LSQR`: max iterations
integer,intent(in),optional :: nout !! `LSQR`: output unit for printing
integer,intent(in),optional :: lusol_method
integer,intent(in),optional :: lusol_method !! `LUSOL` method:
!!
!! * 0 => TPP: Threshold Partial Pivoting.
!! * 1 => TRP: Threshold Rook Pivoting.
!! * 2 => TCP: Threshold Complete Pivoting.

logical :: status_ok !! true if there were no errors

Expand Down Expand Up @@ -738,9 +744,6 @@ subroutine nlesolver_solver(me,x)
case (3)
! use lusol solver
lusol_options%method = me%lusol_method
! 0 => TPP: Threshold Partial Pivoting.
! 1 => TRP: Threshold Rook Pivoting.
! 2 => TCP: Threshold Complete Pivoting.
call solve(me%n,me%m,me%n_nonzeros,me%irow,me%icol,fjac_sparse,rhs,p,info,&
settings=lusol_options)
end select
Expand Down

0 comments on commit 118325d

Please sign in to comment.