-
Notifications
You must be signed in to change notification settings - Fork 1
/
mao_types.F
64 lines (49 loc) · 2.58 KB
/
mao_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
57
58
59
60
61
62
63
64
!--------------------------------------------------------------------------------------------------!
! 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 The types needed for the calculation of modified atomic orbitals (MAO)
!> \par History
!> 03.2016 created [JGH]
!> \author JGH
! **************************************************************************************************
MODULE mao_types
#include "./base/base_uses.f90"
IMPLICIT NONE
PRIVATE
CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'mao_types'
! **************************************************************************************************
!> \brief Quantities needed for MAO's
!> \author JGH
! **************************************************************************************************
TYPE mao_type
INTEGER :: ref_basis = -1
END TYPE mao_type
! **************************************************************************************************
CONTAINS
! **************************************************************************************************
!> \brief ...
!> \param mao_env ...
! **************************************************************************************************
SUBROUTINE create_mao_type(mao_env)
TYPE(mao_type), POINTER :: mao_env
IF (ASSOCIATED(mao_env)) THEN
CALL release_mao_type(mao_env)
END IF
ALLOCATE (mao_env)
END SUBROUTINE create_mao_type
! **************************************************************************************************
!> \brief ...
!> \param mao_env ...
! **************************************************************************************************
SUBROUTINE release_mao_type(mao_env)
TYPE(mao_type), POINTER :: mao_env
IF (ASSOCIATED(mao_env)) THEN
DEALLOCATE (mao_env)
END IF
END SUBROUTINE release_mao_type
! **************************************************************************************************
END MODULE mao_types