Skip to content

Commit b92c166

Browse files
committed
fix: comply with simply contiguous rule
1 parent 1b9812a commit b92c166

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Utilities/Export/NCExportCreate.f90

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ subroutine create_export_pkglist(pkglist, loaders, iout)
154154
class(AsciiDynamicPkgLoadBaseType), pointer :: rp_loader
155155
type(ExportPackageType), pointer :: export_pkg
156156
integer(I4B), pointer :: export_arrays
157+
integer(I4B), dimension(:), pointer, contiguous :: mshape
157158
class(*), pointer :: obj
158159
logical(LGP) :: found, readasarrays
159160
integer(I4B) :: n
@@ -187,17 +188,19 @@ subroutine create_export_pkglist(pkglist, loaders, iout)
187188
type is (LayerArrayLoadType)
188189
! create the export object
189190
allocate (export_pkg)
191+
mshape => rp_loader%ctx%mshape
190192
call export_pkg%init(rp_loader%mf6_input, &
191-
rp_loader%ctx%mshape, &
193+
mshape, &
192194
rp_loader%ctx%naux, &
193195
rp_loader%param_names, rp_loader%nparam)
194196
obj => export_pkg
195197
call pkglist%add(obj)
196198
type is (GridArrayLoadType)
197199
! create the export object
198200
allocate (export_pkg)
201+
mshape => rp_loader%ctx%mshape
199202
call export_pkg%init(rp_loader%mf6_input, &
200-
rp_loader%ctx%mshape, &
203+
mshape, &
201204
rp_loader%ctx%naux, &
202205
rp_loader%param_names, rp_loader%nparam)
203206
obj => export_pkg

0 commit comments

Comments
 (0)