cell Derived Type

type, public :: cell


Inherited by

type~~cell~~InheritedByGraph type~cell cell type~mesh mesh type~mesh->type~cell cells type~pde pde type~pde->type~mesh msh type~field field type~field->type~mesh msh type~scalar_field scalar_field type~scalar_field->type~field type~vector_field vector_field type~vector_field->type~field type~scalar_pde scalar_pde type~scalar_pde->type~pde type~vector_pde vector_pde type~vector_pde->type~pde

Contents

Source Code


Components

TypeVisibility AttributesNameInitial
character(len=nlen), private :: geo

abbreviation for kind of cell

integer, private :: group

group ID of cell

integer, private :: nf

number of faces

integer, private :: nv

number of vertices


Type-Bound Procedures

generic, public :: geo_ => get_cell_geo

generic, public :: group_ => get_cell_group

generic, public :: nemo_sizeof => nemo_cell_sizeof

generic, public :: nv_ => get_cell_nv

procedure, private :: get_cell_geo

  • interface

    private module function get_cell_geo(c)

    Arguments

    Type IntentOptional AttributesName
    class(cell), intent(in) :: c

    Return Value character(len=nlen)

procedure, private :: get_cell_group

  • interface

    private module function get_cell_group(c)

    Arguments

    Type IntentOptional AttributesName
    class(cell), intent(in) :: c

    Return Value integer

procedure, private :: get_cell_nv

  • interface

    private elemental module function get_cell_nv(c)

    Arguments

    Type IntentOptional AttributesName
    class(cell), intent(in) :: c

    Return Value integer

procedure, private :: nemo_cell_sizeof

  • interface

    private elemental module function nemo_cell_sizeof(cll)

    Arguments

    Type IntentOptional AttributesName
    class(cell), intent(in) :: cll

    Return Value integer(kind=nemo_int_long_)

Source Code

    TYPE cell
        PRIVATE
        INTEGER :: nv  !! number of vertices
        INTEGER :: nf  !! number of faces
        INTEGER :: group !! group ID of cell
        CHARACTER(len=nlen) :: geo  !! abbreviation for kind of cell
    CONTAINS
        PROCEDURE, PRIVATE :: get_cell_nv, get_cell_geo, get_cell_group  !Getters
        GENERIC, PUBLIC :: nv_ => get_cell_nv
        GENERIC, PUBLIC :: geo_ => get_cell_geo
        GENERIC, PUBLIC :: group_ => get_cell_group
        PROCEDURE, PRIVATE :: nemo_cell_sizeof
        GENERIC, PUBLIC :: nemo_sizeof => nemo_cell_sizeof
    END TYPE cell