Skip to content

Commit 0ac9900

Browse files
Merge pull request #3 from jchristopherson/v1.2.0
Bug fix in ODE_AUTO
2 parents 3c90c31 + fd06ec2 commit 0ac9900

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(integral C CXX Fortran)
44

55
# Define version information
66
set(INTEGRAL_MAJOR_VERSION 1)
7-
set(INTEGRAL_MINOR_VERSION 1)
7+
set(INTEGRAL_MINOR_VERSION 2)
88
set(INTEGRAL_PATCH_VERSION 0)
99
set(INTEGRAL_VERSION ${INTEGRAL_MAJOR_VERSION}.${INTEGRAL_MINOR_VERSION}.${INTEGRAL_PATCH_VERSION})
1010

src/integral_ode_auto.f90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,27 @@ module subroutine oa_init_workspace(this, liw, lrw, ncnsts, err)
188188
if (size(this%m_iwork) < liw) then
189189
deallocate(this%m_iwork)
190190
allocate(this%m_iwork(liw), stat = flag)
191+
this%m_iwork = 0
192+
this%m_iwork(8) = 12
193+
this%m_iwork(9) = 5
191194
end if
192195
else
193196
allocate(this%m_iwork(liw), stat = flag)
197+
this%m_iwork = 0
198+
this%m_iwork(8) = 12
199+
this%m_iwork(9) = 5
194200
end if
195201

196202
if (flag == 0) then
197203
if (allocated(this%m_rwork)) then
198204
if (size(this%m_rwork) < lrw) then
199205
deallocate(this%m_rwork)
200206
allocate(this%m_rwork(lrw), stat = flag)
207+
this%m_rwork = 0.0d0
201208
end if
202209
else
203210
allocate(this%m_rwork(lrw), stat = flag)
211+
this%m_rwork = 0.0d0
204212
end if
205213
end if
206214

0 commit comments

Comments
 (0)