connectivity Derived Type

type, public :: connectivity


Inherited by

type~~connectivity~~InheritedByGraph type~connectivity connectivity type~mesh mesh type~mesh->type~connectivity v2c, v2f, f2c, c2g, v2v, f2f, c2c, v2b, f2b 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
integer, private, allocatable:: conn(:)
integer, private, allocatable:: lookup(:)
integer, private :: nconn_glob
integer, private :: nel_glob

Type-Bound Procedures

procedure, public :: get_conn_csr

  • interface

    **m Connectivity/free_conn

    Read more…

    private module subroutine get_conn_csr(a2b, lookup, conn)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: a2b
    integer, allocatable:: lookup(:)
    integer, allocatable:: conn(:)

procedure, public :: get_dual_conn

procedure, public :: get_ith_conn

  • interface

    **m Connectivity/free_conn

    Read more…

    private module subroutine get_ith_conn(a2b, ith_conn, i)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in), target:: a2b
    integer, pointer:: ith_conn(:)
    integer, intent(in) :: i

procedure, public :: max_conn

  • interface

    **m Connectivity/free_conn

    Read more…

    private module function max_conn(a2b, lb)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: a2b
    integer, intent(in), optional :: lb

    Return Value integer

procedure, public :: nconn_

  • interface

    **m Connectivity/free_conn

    Read more…

    private module function nconn_(a2b, gl)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: a2b
    character(len=1), intent(in), optional :: gl

    Return Value integer

procedure, public :: nel_

  • interface

    **m Connectivity/free_conn

    Read more…

    private module function nel_(a2b, gl)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: a2b
    character(len=1), intent(in), optional :: gl

    Return Value integer

generic, public :: nemo_sizeof => nemo_connectivity_sizeof

procedure, public :: set_ith_conn

  • interface

    **m Connectivity/free_conn

    Read more…

    private module subroutine set_ith_conn(a2b, i, ith_conn)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(inout) :: a2b
    integer, intent(in) :: i
    integer, intent(in) :: ith_conn(:)

procedure, public :: unused_elements

  • interface

    **m Connectivity/free_conn

    Read more…

    private module function unused_elements(a2b)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: a2b

    Return Value integer

procedure, private :: g2l_conn_core

  • interface

    **m Connectivity/free_conn

    Read more…

    private module subroutine g2l_conn_core(a2b, iglob_to_loc_a, iloc_to_glob_b)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(inout) :: a2b
    integer, intent(in) :: iglob_to_loc_a(:)
    integer, intent(in) :: iloc_to_glob_b(:)

    IP - 5/27/2019: This work-around fixes an ICE with Intel 18.0.5.274 Note: The ICE only shows up when building the submodule that implements this procedure

procedure, private :: nemo_connectivity_sizeof

  • interface

    **m Connectivity/free_conn

    Read more…

    private elemental module function nemo_connectivity_sizeof(conn)

    Arguments

    Type IntentOptional AttributesName
    class(connectivity), intent(in) :: conn

    Return Value integer(kind=nemo_int_long_)

Source Code

    TYPE connectivity
        PRIVATE
        INTEGER, ALLOCATABLE :: lookup(:)
        INTEGER, ALLOCATABLE :: conn(:)
        INTEGER :: nel_glob
        INTEGER :: nconn_glob
    CONTAINS
        PROCEDURE :: get_ith_conn, get_conn_csr, get_dual_conn    ! Getters
        PROCEDURE :: nel_, nconn_                                 ! Getters cont.
        PROCEDURE :: set_ith_conn                   ! Setter
        PROCEDURE :: max_conn                       ! Other
        PROCEDURE :: unused_elements
        PROCEDURE, PRIVATE :: nemo_connectivity_sizeof
        GENERIC, PUBLIC :: nemo_sizeof => nemo_connectivity_sizeof
        PROCEDURE, PRIVATE :: g2l_conn_core
    END TYPE connectivity