MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
iunitmodule::iunittype Type Reference
Collaboration diagram for iunitmodule::iunittype:
Collaboration graph

Public Member Functions

procedure init (this, niunit, cunit)
 Allocate the cunit and iunit entries of this object, and copy cunit into the object.
procedure addfile (this, ftyp, iunit, ipos, namefilename)
 Add an ftyp and unit number.
procedure getunitnumber (this, ftyp, iunit, iremove)
 Get the last unit number for type ftyp or return 0 for iunit.

Public Attributes

integer(i4b) niunit = 0
character(len=lenftype), dimension(:), allocatable cunit
type(iunitrowtype), dimension(:), allocatable iunit

Detailed Description

Definition at line 28 of file Iunit.f90.

Member Function/Subroutine Documentation

◆ addfile()

procedure iunitmodule::iunittype::addfile ( class(iunittype), intent(inout) this,
character(len=*), intent(in) ftyp,
integer(i4b), intent(in) iunit,
integer(i4b), intent(in) ipos,
character(len=*), intent(in) namefilename )

Find the row for the ftyp and store another iunit value.

Definition at line 34 of file Iunit.f90.

◆ getunitnumber()

procedure iunitmodule::iunittype::getunitnumber ( class(iunittype), intent(inout) this,
character(len=*), intent(in) ftyp,
integer(i4b), intent(inout) iunit,
integer(i4b), intent(in) iremove )

If iremove is 1, then remove this unit number. Similar to a list.pop().

Definition at line 35 of file Iunit.f90.

◆ init()

procedure iunitmodule::iunittype::init ( class(iunittype), intent(inout) this,
integer(i4b), intent(in) niunit,
character(len=*), dimension(niunit), intent(in) cunit )

Definition at line 33 of file Iunit.f90.

Member Data Documentation

◆ cunit

character(len=lenftype), dimension(:), allocatable iunitmodule::iunittype::cunit

Definition at line 30 of file Iunit.f90.

30 character(len=LENFTYPE), allocatable, dimension(:) :: cunit

◆ iunit

type(iunitrowtype), dimension(:), allocatable iunitmodule::iunittype::iunit

Definition at line 31 of file Iunit.f90.

31 type(IunitRowType), allocatable, dimension(:) :: iunit

◆ niunit

integer(i4b) iunitmodule::iunittype::niunit = 0

Definition at line 29 of file Iunit.f90.


The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Utilities/Iunit.f90