(git:34ef472)
mao_types.F
Go to the documentation of this file.
1 !--------------------------------------------------------------------------------------------------!
2 ! CP2K: A general program to perform molecular dynamics simulations !
3 ! Copyright 2000-2024 CP2K developers group <https://cp2k.org> !
4 ! !
5 ! SPDX-License-Identifier: GPL-2.0-or-later !
6 !--------------------------------------------------------------------------------------------------!
7 
8 ! **************************************************************************************************
9 !> \brief The types needed for the calculation of modified atomic orbitals (MAO)
10 !> \par History
11 !> 03.2016 created [JGH]
12 !> \author JGH
13 ! **************************************************************************************************
14 MODULE mao_types
15 
16 #include "./base/base_uses.f90"
17  IMPLICIT NONE
18  PRIVATE
19 
20  CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'mao_types'
21 
22 ! **************************************************************************************************
23 !> \brief Quantities needed for MAO's
24 !> \author JGH
25 ! **************************************************************************************************
26  TYPE mao_type
27  INTEGER :: ref_basis
28  END TYPE mao_type
29 
30 ! **************************************************************************************************
31 
32 CONTAINS
33 
34 ! **************************************************************************************************
35 !> \brief ...
36 !> \param mao_env ...
37 ! **************************************************************************************************
38  SUBROUTINE create_mao_type(mao_env)
39  TYPE(mao_type), POINTER :: mao_env
40 
41  IF (ASSOCIATED(mao_env)) THEN
42  CALL release_mao_type(mao_env)
43  END IF
44 
45  ALLOCATE (mao_env)
46 
47  END SUBROUTINE create_mao_type
48 
49 ! **************************************************************************************************
50 !> \brief ...
51 !> \param mao_env ...
52 ! **************************************************************************************************
53  SUBROUTINE release_mao_type(mao_env)
54  TYPE(mao_type), POINTER :: mao_env
55 
56  IF (ASSOCIATED(mao_env)) THEN
57  DEALLOCATE (mao_env)
58  END IF
59 
60  END SUBROUTINE release_mao_type
61 
62 ! **************************************************************************************************
63 
64 END MODULE mao_types
The types needed for the calculation of modified atomic orbitals (MAO)
Definition: mao_types.F:14