Skip to content

Commit

Permalink
make a_copy and b_copy allocatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Dec 6, 2023
1 parent 8ddf79b commit 3b31a4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/forsolver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ pure function dgesv_rel(A, b) result(x)
integer :: info ! result info
integer :: n, lda, ldb
integer, dimension(size(A, 2)) :: ipiv
real(rk), dimension(size(A,1),size(A,2)) :: a_copy
real(rk), dimension(size(b)) :: b_copy
real(rk), dimension(:,:), allocatable :: a_copy
real(rk), dimension(:), allocatable :: b_copy

! interface for dgels subroutine
interface
Expand Down Expand Up @@ -140,8 +140,8 @@ pure function dgels_rel(A, b) result(x)
integer :: m, n, lda, ldb, lwork
real(rk), allocatable :: work(:)
real(rk) :: work1(1)
real(rk), dimension(size(A,1),size(A,2)) :: a_copy
real(rk), dimension(size(b)) :: b_copy
real(rk), dimension(:,:), allocatable :: a_copy
real(rk), dimension(:), allocatable :: b_copy

! interface for dgels subroutine
interface
Expand Down

0 comments on commit 3b31a4f

Please sign in to comment.