TABLE OF CONTENTS


ABINIT/ptg_C6 [ Functions ]

[ Top ] [ Functions ]

NAME

 ptg_C6

FUNCTION

COPYRIGHT

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

INPUTS

OUTPUT

PARENTS

      m_ptgroups

CHILDREN

SOURCE

 27 !********************************************************************************
 28 ! This include file has been automatically generated by the script ptg.py
 29 ! Do not edit! Change the script source instead.
 30 !********************************************************************************
 31 
 32 ! Point group name  C6 (6)
 33 
 34 #if defined HAVE_CONFIG_H
 35 #include "config.h"
 36 #endif
 37 
 38 #include "abi_common.h"
 39 
 40 
 41 module m_ptg_C6
 42 contains
 43 !!**
 44 
 45 
 46 
 47  subroutine ptg_C6 (nsym,nclass,sym,class_ids,class_names,Irr)
 48  use defs_basis
 49  use m_abicore
 50  use m_defs_ptgroups,  only : irrep_t
 51 
 52 !This section has been created automatically by the script Abilint (TD).
 53 !Do not modify the following lines by hand.
 54 #undef ABI_FUNC
 55 #define ABI_FUNC 'ptg_C6'
 56 !End of the abilint section
 57 
 58  implicit none
 59 !Arguments ------------------------------------
 60  integer,intent(out) :: nclass,nsym 
 61  !arrays
 62  integer,allocatable,intent(out) :: sym(:,:,:), class_ids(:,:)
 63  character(len=5),allocatable,intent(out) :: class_names(:)
 64  type(irrep_t),allocatable,intent(out) :: Irr(:)
 65  !Local variables-------------------------------
 66  complex(dpc) :: j=(0.0_dp,1.0_dp) 
 67  ! ********************************************************************************
 68 ! List of symmetries packed in classes
 69  nsym = 6
 70  ABI_MALLOC(sym, (3,3,nsym))
 71  sym(:,:,1) = RESHAPE( (/1, 0, 0, 0, 1, 0, 0, 0, 1/) ,(/3,3/) )
 72  sym(:,:,2) = RESHAPE( (/0, 1, 0, -1, -1, 0, 0, 0, 1/) ,(/3,3/) )
 73  sym(:,:,3) = RESHAPE( (/-1, -1, 0, 1, 0, 0, 0, 0, 1/) ,(/3,3/) )
 74  sym(:,:,4) = RESHAPE( (/-1, 0, 0, 0, -1, 0, 0, 0, 1/) ,(/3,3/) )
 75  sym(:,:,5) = RESHAPE( (/0, -1, 0, 1, 1, 0, 0, 0, 1/) ,(/3,3/) )
 76  sym(:,:,6) = RESHAPE( (/1, 1, 0, -1, 0, 0, 0, 0, 1/) ,(/3,3/) )
 77 
 78 ! Number of classes and corresponding indeces
 79  nclass = 6
 80  ABI_MALLOC(class_ids, (2,nclass))
 81  class_ids(1,1) = 1
 82  class_ids(2,1) = 1
 83  class_ids(1,2) = 2
 84  class_ids(2,2) = 2
 85  class_ids(1,3) = 3
 86  class_ids(2,3) = 3
 87  class_ids(1,4) = 4
 88  class_ids(2,4) = 4
 89  class_ids(1,5) = 5
 90  class_ids(2,5) = 5
 91  class_ids(1,6) = 6
 92  class_ids(2,6) = 6
 93 
 94 ABI_MALLOC(class_names,(6))
 95  class_names(1) = "1+" 
 96  class_names(2) = "3+" 
 97  class_names(3) = "3+" 
 98  class_names(4) = "2+" 
 99  class_names(5) = "6+" 
100  class_names(6) = "6+" 
101 
102 ! List of irreducible representations.
103  ABI_DT_MALLOC(Irr, (6))
104  Irr(1)%name = "A"
105  Irr(1)%dim = 1
106  Irr(1)%nsym = 6
107  ABI_MALLOC(Irr(1)%mat, (1,1,6))
108  Irr(1)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
109  Irr(1)%mat(:,:,2) =  RESHAPE( (/1.0/), (/1, 1/) )
110  Irr(1)%mat(:,:,3) =  RESHAPE( (/1.0/), (/1, 1/) )
111  Irr(1)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
112  Irr(1)%mat(:,:,5) =  RESHAPE( (/1.0/), (/1, 1/) )
113  Irr(1)%mat(:,:,6) =  RESHAPE( (/1.0/), (/1, 1/) )
114 
115  Irr(2)%name = "B"
116  Irr(2)%dim = 1
117  Irr(2)%nsym = 6
118  ABI_MALLOC(Irr(2)%mat, (1,1,6))
119  Irr(2)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
120  Irr(2)%mat(:,:,2) =  RESHAPE( (/1.0/), (/1, 1/) )
121  Irr(2)%mat(:,:,3) =  RESHAPE( (/1.0/), (/1, 1/) )
122  Irr(2)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
123  Irr(2)%mat(:,:,5) =  RESHAPE( (/-1.0/), (/1, 1/) )
124  Irr(2)%mat(:,:,6) =  RESHAPE( (/-1.0/), (/1, 1/) )
125 
126  Irr(3)%name = "E22"
127  Irr(3)%dim = 1
128  Irr(3)%nsym = 6
129  ABI_MALLOC(Irr(3)%mat, (1,1,6))
130  Irr(3)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
131  Irr(3)%mat(:,:,2) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
132  Irr(3)%mat(:,:,3) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
133  Irr(3)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
134  Irr(3)%mat(:,:,5) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
135  Irr(3)%mat(:,:,6) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
136 
137  Irr(4)%name = "E11"
138  Irr(4)%dim = 1
139  Irr(4)%nsym = 6
140  ABI_MALLOC(Irr(4)%mat, (1,1,6))
141  Irr(4)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
142  Irr(4)%mat(:,:,2) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
143  Irr(4)%mat(:,:,3) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
144  Irr(4)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
145  Irr(4)%mat(:,:,5) =  RESHAPE( (/0.5-0.86603*j/), (/1, 1/) )
146  Irr(4)%mat(:,:,6) =  RESHAPE( (/0.5+0.86603*j/), (/1, 1/) )
147 
148  Irr(5)%name = "E21"
149  Irr(5)%dim = 1
150  Irr(5)%nsym = 6
151  ABI_MALLOC(Irr(5)%mat, (1,1,6))
152  Irr(5)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
153  Irr(5)%mat(:,:,2) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
154  Irr(5)%mat(:,:,3) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
155  Irr(5)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
156  Irr(5)%mat(:,:,5) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
157  Irr(5)%mat(:,:,6) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
158 
159  Irr(6)%name = "E12"
160  Irr(6)%dim = 1
161  Irr(6)%nsym = 6
162  ABI_MALLOC(Irr(6)%mat, (1,1,6))
163  Irr(6)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
164  Irr(6)%mat(:,:,2) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
165  Irr(6)%mat(:,:,3) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
166  Irr(6)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
167  Irr(6)%mat(:,:,5) =  RESHAPE( (/0.5+0.86603*j/), (/1, 1/) )
168  Irr(6)%mat(:,:,6) =  RESHAPE( (/0.5-0.86603*j/), (/1, 1/) )
169 
170  RETURN
171   if (.FALSE.) write(std_out,*) j
172  end subroutine ptg_C6