Skip to content

Commit

Permalink
tests: allocate instead of stack to avoid test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 15, 2020
1 parent 8b1a241 commit 12e3e57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('h5fortran', 'fortran',
meson_version : '>=0.52.0',
version : '2.9.2',
version : '2.9.3',
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])

subdir('meson')
Expand Down
10 changes: 6 additions & 4 deletions src/tests/test_deflate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ program test_deflate

contains

recursive subroutine test_hdf5_deflate(path)
subroutine test_hdf5_deflate(path)
type(hdf5_file) :: h5f
character(*), intent(in) :: path
integer(hsize_t), parameter :: N=1000
integer(hsize_t) :: crat, chunks(3)
integer :: fsize, layout

integer :: ibig2(N,N), ibig3(N,N,4)
real(real32) :: big2(N,N), big3(N,N,4)
integer, allocatable :: ibig2(:,:), ibig3(:,:,:)
real(real32), allocatable :: big2(:,:), big3(:,:,:)
character(:), allocatable :: fn

allocate(ibig2(N,N), ibig3(N,N,4), big2(N,N), big3(N,N,4))

ibig2 = 0
ibig3 = 0
big2 = 0
Expand Down Expand Up @@ -115,4 +117,4 @@ recursive subroutine test_hdf5_deflate(path)

end subroutine test_hdf5_deflate

end program
end program

0 comments on commit 12e3e57

Please sign in to comment.