File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments