MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
virtualmodelmodule::get_virtual_model Interface Reference
Collaboration diagram for virtualmodelmodule::get_virtual_model:
Collaboration graph

Public Member Functions

class(virtualmodeltype) function, pointer get_virtual_model_by_id (model_id)
 Returns a virtual model with the specified id.
class(virtualmodeltype) function, pointer get_virtual_model_by_name (model_name)
 Returns a virtual model with the specified name.

Detailed Description

Definition at line 16 of file VirtualModel.f90.

Member Function/Subroutine Documentation

◆ get_virtual_model_by_id()

class(virtualmodeltype) function, pointer virtualmodelmodule::get_virtual_model::get_virtual_model_by_id ( integer(i4b) model_id)

Definition at line 359 of file VirtualModel.f90.

361 integer(I4B) :: model_id
362 class(VirtualModelType), pointer :: virtual_model
363 ! local
364 integer(I4B) :: i
365 class(*), pointer :: vm
366
367 virtual_model => null()
368 do i = 1, virtual_model_list%Count()
369 vm => virtual_model_list%GetItem(i)
370 select type (vm)
371 class is (virtualmodeltype)
372 if (vm%id == model_id) then
373 virtual_model => vm
374 return
375 end if
376 end select
377 end do
378
type(listtype), public virtual_model_list

◆ get_virtual_model_by_name()

class(virtualmodeltype) function, pointer virtualmodelmodule::get_virtual_model::get_virtual_model_by_name ( character(len=*) model_name)

Definition at line 383 of file VirtualModel.f90.

385 character(len=*) :: model_name
386 class(VirtualModelType), pointer :: virtual_model
387 ! local
388 integer(I4B) :: i
389 class(*), pointer :: vm
390
391 virtual_model => null()
392 do i = 1, virtual_model_list%Count()
393 vm => virtual_model_list%GetItem(i)
394 select type (vm)
395 class is (virtualmodeltype)
396 if (vm%name == model_name) then
397 virtual_model => vm
398 return
399 end if
400 end select
401 end do
402

The documentation for this interface was generated from the following file: