TABLE OF CONTENTS


ABINIT/m_dynarray [ Modules ]

[ Top ] [ Modules ]

NAME

 m_dynarray

FUNCTION

 Module for int and real(dp) array which allocate memory dynamically
 real_array_type for real(dp) and int_array_type for integer.
 they have push (but no pop) and finalize methods.
 TODO hexu: Is this already implemented somewhere in abinit.
 If not, should this file  be moved to the place to make it more general usable?

COPYRIGHT

 Copyright (C) 2010-2018 ABINIT group (hexu)
 This file is distributed under the terms of the
 GNU General Public Licence, see ~abinit/COPYING
 or http://www.gnu.org/copyleft/gpl.txt .
 For the initials of contributors, see ~abinit/doc/developers/contributors.txt .

SOURCE

25 #if defined HAVE_CONFIG_H
26 #include "config.h"
27 #endif
28 #include "abi_common.h"
29 
30 module m_dynmaic_array
31   use defs_basis
32   use m_abicore
33   use m_errors
34   implicit none

defs_abitypes/int_array_type [ Types ]

[ Top ] [ defs_abitypes ] [ Types ]

NAME

 int_array_type

FUNCTION

 datatype of real(dp) array which can be dynamically allocated

SOURCE

62   type int_array_type
63     integer:: size=0, capacity=0
64     integer, allocatable :: data(:)
65   !CONTAINS
66   !  procedure :: push => int_array_type_push
67   !  procedure :: finalize => int_array_type_finalize
68   end type int_array_type

defs_abitypes/real_array_type [ Types ]

[ Top ] [ defs_abitypes ] [ Types ]

NAME

 real_array_type

FUNCTION

 datatype of real(dp) array which can be dynamically allocated

SOURCE

45   type real_array_type
46     integer:: size=0, capacity=0
47     real(dp), allocatable :: data(:)
48   !CONTAINS
49   !  procedure :: push => real_array_type_push
50   !  procedure :: finalize => real_array_type_finalize
51   end type real_array_type