Skip to content

Commit 7b1c33b

Browse files
committed
fix(mf6bmiUtil): use base model in get_grid_type_model
1 parent 49cc19b commit 7b1c33b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

srcbmi/mf6bmiUtil.f90

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,19 @@ end function getSolution
238238
subroutine get_grid_type_model(model_name, grid_type_f)
239239
! -- modules
240240
use ListsModule, only: basemodellist
241-
use NumericalModelModule, only: NumericalModelType, GetNumericalModelFromList
241+
use BaseModelModule, only: BaseModelType, GetBaseModelFromList
242242
! -- dummy variables
243243
character(len=LENMODELNAME) :: model_name
244244
character(len=LENGRIDTYPE) :: grid_type_f
245245
! -- local variables
246246
integer(I4B) :: i
247-
class(NumericalModelType), pointer :: numericalModel
247+
class(BaseModelType), pointer :: baseModel
248248

249249
do i = 1, basemodellist%Count()
250-
numericalModel => GetNumericalModelFromList(basemodellist, i)
251-
if (numericalModel%name == model_name) then
252-
call numericalModel%dis%get_dis_type(grid_type_f)
250+
baseModel => GetBaseModelFromList(basemodellist, i)
251+
if (baseModel%name == model_name) then
252+
call baseModel%dis%get_dis_type(grid_type_f)
253+
return
253254
end if
254255
end do
255256
end subroutine get_grid_type_model

0 commit comments

Comments
 (0)