-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTypeMod.f90
40 lines (31 loc) · 895 Bytes
/
TypeMod.f90
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
Module TypeMod
Implicit None
!B2 type
type :: inner
real(8), allocatable, dimension(:,:) :: n
end type inner
type :: outer
type(inner), allocatable, dimension(:,:) :: m
end type outer
type :: B2
type(outer) :: aa
type(outer) :: ab
type(outer) :: bb
type(outer) :: nospin
end type B2
!B1 type
type :: virtorb
real(8), allocatable, dimension(:,:) :: o
end type virtorb
type :: B1
type(virtorb) :: a
type(virtorb) :: b
end type B1
type :: ingreen
real(8), allocatable,dimension(:,:) :: gf
end type ingreen
type :: energr
type(ingreen),allocatable,dimension(:) :: en
end type energr
integer, allocatable, dimension(:) :: Virt_Index,Occ_Index
end Module