MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
CellPoly.f90
Go to the documentation of this file.
2 
3  use cellmodule, only: celltype
5  implicit none
6 
7  private
8  public :: cellpolytype
9  public :: create_cell_poly
10 
11  type, extends(celltype) :: cellpolytype
12  contains
13  procedure :: destroy => destroy_cell_poly
14  end type cellpolytype
15 
16 contains
17 
18  !> @brief Create a new polygonal cell
19  subroutine create_cell_poly(cell)
20  type(cellpolytype), pointer :: cell
21  allocate (cell)
22  call create_defn(cell%defn)
23  allocate (cell%type)
24  cell%type = 'poly'
25  end subroutine create_cell_poly
26 
27  !> @brief Destroy the polygonal cell
28  subroutine destroy_cell_poly(this)
29  class(cellpolytype), intent(inout) :: this
30  deallocate (this%defn)
31  deallocate (this%type)
32  end subroutine destroy_cell_poly
33 
34 end module cellpolymodule
subroutine, public create_defn(cellDefn)
Create a new cell definition object.
Definition: CellDefn.f90:44
subroutine destroy_cell_poly(this)
Destroy the polygonal cell.
Definition: CellPoly.f90:29
subroutine, public create_cell_poly(cell)
Create a new polygonal cell.
Definition: CellPoly.f90:20
Base grid cell definition.
Definition: CellDefn.f90:12
Base type for grid cells of a concrete type. Contains a cell-definition which is information shared b...
Definition: Cell.f90:13