MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
virtualmodelmodule::get_virtual_model Interface Reference
Collaboration diagram for virtualmodelmodule::get_virtual_model:
Collaboration graph

Private Member Functions

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

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)
private

Definition at line 348 of file VirtualModel.f90.

350  integer(I4B) :: model_id
351  class(VirtualModelType), pointer :: virtual_model
352  ! local
353  integer(I4B) :: i
354  class(*), pointer :: vm
355 
356  virtual_model => null()
357  do i = 1, virtual_model_list%Count()
358  vm => virtual_model_list%GetItem(i)
359  select type (vm)
360  class is (virtualmodeltype)
361  if (vm%id == model_id) then
362  virtual_model => vm
363  return
364  end if
365  end select
366  end do
367 
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)
private

Definition at line 372 of file VirtualModel.f90.

374  character(len=*) :: model_name
375  class(VirtualModelType), pointer :: virtual_model
376  ! local
377  integer(I4B) :: i
378  class(*), pointer :: vm
379 
380  virtual_model => null()
381  do i = 1, virtual_model_list%Count()
382  vm => virtual_model_list%GetItem(i)
383  select type (vm)
384  class is (virtualmodeltype)
385  if (vm%name == model_name) then
386  virtual_model => vm
387  return
388  end if
389  end select
390  end do
391 

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