Skip to content

Commit

Permalink
debugging memory errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Nov 15, 2024
1 parent fe81cea commit ae6ae36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
- name: test
run: |
cd $GITHUB_WORKSPACE/g2/build
ctest --verbose
ctest --verbose --output-on-failure --rerun-failed
2 changes: 1 addition & 1 deletion .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: test_memcheck
run: |
cd $GITHUB_WORKSPACE/g2/build
ctest -LE "^noMemcheck$" -T memcheck
ctest -LE "^noMemcheck$" -T memcheck --verbose --output-on-failure --rerun-failed
- name: cache-data
if: steps.cache-data.outputs.cache-hit != 'true'
Expand Down
14 changes: 7 additions & 7 deletions tests/test_bitmap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ end subroutine g2_create_index
if (iret .ne. 0) stop 2

! Open output file where index will be written.
!call baopen(lugi, BITMAP_FILE_INDEX, iret)
!if (iret .ne. 0) stop 3
call baopen(lugi, BITMAP_FILE_INDEX, iret)
if (iret .ne. 0) stop 3

!call g2_create_index(lugb, lugi, idxver, BITMAP_FILE, iret)
!if (iret .ne. 0) stop 4
call g2_create_index(lugb, lugi, idxver, BITMAP_FILE, iret)
if (iret .ne. 0) stop 4

jids = -9999
jpdt = -9999
jgdt = -9999

call getgb2i2(lugb, 0, j, jdisc, jids, jpdtn, jpdt, jgdtn, &
call getgb2i2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, &
jgdt, unpack, myidxver, k, gfld, iret)
if (iret .ne. 0) stop 10
if (k .ne. 1) stop 11
Expand All @@ -79,8 +79,8 @@ end subroutine g2_create_index

call baclose(lugb, iret)
if (iret .ne. 0) stop 100
!call baclose(lugi, iret)
!if (iret .ne. 0) stop 101
call baclose(lugi, iret)
if (iret .ne. 0) stop 101

! Free resources.
call gf_free(gfld)
Expand Down

0 comments on commit ae6ae36

Please sign in to comment.