Skip to content

Commit

Permalink
Merge pull request #3 from jchristopherson/v1.2.0
Browse files Browse the repository at this point in the history
Bug fix in ODE_AUTO
  • Loading branch information
jchristopherson authored Jul 7, 2022
2 parents 3c90c31 + fd06ec2 commit 0ac9900
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(integral C CXX Fortran)

# Define version information
set(INTEGRAL_MAJOR_VERSION 1)
set(INTEGRAL_MINOR_VERSION 1)
set(INTEGRAL_MINOR_VERSION 2)
set(INTEGRAL_PATCH_VERSION 0)
set(INTEGRAL_VERSION ${INTEGRAL_MAJOR_VERSION}.${INTEGRAL_MINOR_VERSION}.${INTEGRAL_PATCH_VERSION})

Expand Down
8 changes: 8 additions & 0 deletions src/integral_ode_auto.f90
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,27 @@ module subroutine oa_init_workspace(this, liw, lrw, ncnsts, err)
if (size(this%m_iwork) < liw) then
deallocate(this%m_iwork)
allocate(this%m_iwork(liw), stat = flag)
this%m_iwork = 0
this%m_iwork(8) = 12
this%m_iwork(9) = 5
end if
else
allocate(this%m_iwork(liw), stat = flag)
this%m_iwork = 0
this%m_iwork(8) = 12
this%m_iwork(9) = 5
end if

if (flag == 0) then
if (allocated(this%m_rwork)) then
if (size(this%m_rwork) < lrw) then
deallocate(this%m_rwork)
allocate(this%m_rwork(lrw), stat = flag)
this%m_rwork = 0.0d0
end if
else
allocate(this%m_rwork(lrw), stat = flag)
this%m_rwork = 0.0d0
end if
end if

Expand Down

0 comments on commit 0ac9900

Please sign in to comment.