Skip to content

Commit

Permalink
tolerate dimension 0 static list input (#2038)
Browse files Browse the repository at this point in the history
Co-authored-by: mjreno <mjreno@IGSAAA071L01144.gs.doi.net>
  • Loading branch information
mjreno and mjreno authored Oct 21, 2024
1 parent 6a32f14 commit 2bb0c95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Utilities/Idm/mf6blockfile/LoadMf6File.f90
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ subroutine parse_structarray_block(this, iblk)
call mem_setptr(nrow, idt%shape, this%mf6_input%mempath)
nrows = nrow
else
nrows = 0
nrows = -1
end if
!
! -- create a structured array
Expand Down
3 changes: 2 additions & 1 deletion src/Utilities/Idm/mf6blockfile/StructArray.f90
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ function constructStructArray(mf6_input, ncol, nrow, blocknum, mempath, &
!
! -- set rows if known or set deferred
struct_array%nrow = nrow
if (struct_array%nrow == 0) then
if (struct_array%nrow == -1) then
struct_array%nrow = 0
struct_array%deferred_shape = .true.
end if
!
Expand Down

0 comments on commit 2bb0c95

Please sign in to comment.