-
Notifications
You must be signed in to change notification settings - Fork 1
/
negf_alloc_types.F
56 lines (46 loc) · 2.86 KB
/
negf_alloc_types.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
!--------------------------------------------------------------------------------------------------!
! CP2K: A general program to perform molecular dynamics simulations !
! Copyright 2000-2024 CP2K developers group <https://cp2k.org> !
! !
! SPDX-License-Identifier: GPL-2.0-or-later !
!--------------------------------------------------------------------------------------------------!
! **************************************************************************************************
!> \brief Allocatable vectors for NEGF based quantum transport calculations.
! **************************************************************************************************
MODULE negf_alloc_types
USE kinds, ONLY: dp
#include "./base/base_uses.f90"
IMPLICIT NONE
PRIVATE
CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'negf_alloc_types'
PUBLIC :: negf_allocatable_ivector, negf_allocatable_rvector, &
negf_allocatable_imatrix, negf_allocatable_rmatrix
! **************************************************************************************************
!> \brief Allocatable 1-D integer vector
! **************************************************************************************************
TYPE negf_allocatable_ivector
!> allocatable 1-D real vector
INTEGER, ALLOCATABLE, DIMENSION(:) :: vector
END TYPE negf_allocatable_ivector
! **************************************************************************************************
!> \brief Allocatable 1-D real vector
! **************************************************************************************************
TYPE negf_allocatable_rvector
!> allocatable 1-D real vector
REAL(kind=dp), ALLOCATABLE, DIMENSION(:) :: vector
END TYPE negf_allocatable_rvector
! **************************************************************************************************
!> \brief Allocatable 2-D integer matrix
! **************************************************************************************************
TYPE negf_allocatable_imatrix
!> allocatable 2-D integer matrix
INTEGER, ALLOCATABLE, DIMENSION(:, :) :: matrix
END TYPE negf_allocatable_imatrix
! **************************************************************************************************
!> \brief Allocatable 2-D real matrix
! **************************************************************************************************
TYPE negf_allocatable_rmatrix
!> allocatable 2-D real matrix
REAL(kind=dp), ALLOCATABLE, DIMENSION(:, :) :: matrix
END TYPE negf_allocatable_rmatrix
END MODULE negf_alloc_types