maps_type Derived Type

type, public :: maps_type

collection of maps for overlap mapping (for one client)


Contents

Source Code


Components

TypeVisibilityAttributesNameInitial
integer, public :: id

id - possibly redundant

type(map_type), public, dimension(:), allocatable:: maps

list of maps


Type-Bound Procedures

procedure, public :: add_entry => add_maps_entry

  • private subroutine add_maps_entry(this, original_atom_id, target_code_id, target_atom_id)

    add an entry to the maps collection

    Arguments

    TypeIntentOptionalAttributesName
    class(maps_type), intent(inout) :: this
    integer, intent(in) :: original_atom_id

    id of an atom within its original code

    integer, intent(in) :: target_code_id

    id of the code which is going to treat this atom

    integer, intent(in) :: target_atom_id

    id of an atom within the target code

procedure, private :: copy => copy_maps

  • private subroutine copy_maps(dest, source)

    add an overlap entry to the map

    Arguments

    TypeIntentOptionalAttributesName
    class(maps_type), intent(out) :: dest
    class(maps_type), intent(in) :: source

generic, public :: assignment(=) => copy

  • private subroutine copy_maps(dest, source)

    add an overlap entry to the map

    Arguments

    TypeIntentOptionalAttributesName
    class(maps_type), intent(out) :: dest
    class(maps_type), intent(in) :: source

Source Code

    type :: maps_type
        private
        !> id - possibly redundant
        integer, public :: id
        !> list of maps
        type(map_type), dimension(:), allocatable, public :: maps
    contains
        private
        ! procedure, public :: init => init_maps
        procedure, public :: add_entry => add_maps_entry
        procedure :: copy => copy_maps
        generic, public :: assignment(=) => copy
    end type maps_type