!{\src2tex{textfont=tt}}
!!****f* ABINIT/ptg_C3i
!!
!! NAME
!! ptg_C3i
!!
!! FUNCTION
!!
!! COPYRIGHT
!! Copyright (C) 2010-2012 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

!********************************************************************************
! This include file has been automatically generated by the script ptg.py
! Do not edit! Change the script source instead.
!********************************************************************************

! Point group name  C3i (-3)

#if defined HAVE_CONFIG_H
#include "config.h"
#endif

#include "abi_common.h"

 subroutine ptg_C3i (nsym,nclass,sym,class_ids,class_names,Irr)

 use m_profiling
 use defs_basis
 use m_defs_ptgroups,  only : irrep_t

!This section has been created automatically by the script Abilint (TD).
!Do not modify the following lines by hand.
#undef ABI_FUNC
#define ABI_FUNC 'ptg_C3i'
!End of the abilint section

 implicit none
!Arguments ------------------------------------
 integer,intent(out) :: nclass,nsym 
 !arrays
 integer,pointer :: sym(:,:,:), class_ids(:,:)
 character(len=5),pointer :: class_names(:)
 type(irrep_t),pointer :: Irr(:)
 !Local variables-------------------------------
 complex(dpc) :: j=(0.0_dp,1.0_dp) 
 ! ********************************************************************************
! List of symmetries packed in classes
 nsym = 6
 ABI_ALLOCATE(sym,(3,3,nsym))
 sym(:,:,1) = RESHAPE( (/1, 0, 0, 0, 1, 0, 0, 0, 1/) ,(/3,3/) )
 sym(:,:,2) = RESHAPE( (/0, 1, 0, -1, -1, 0, 0, 0, 1/) ,(/3,3/) )
 sym(:,:,3) = RESHAPE( (/-1, -1, 0, 1, 0, 0, 0, 0, 1/) ,(/3,3/) )
 sym(:,:,4) = RESHAPE( (/-1, 0, 0, 0, -1, 0, 0, 0, -1/) ,(/3,3/) )
 sym(:,:,5) = RESHAPE( (/0, -1, 0, 1, 1, 0, 0, 0, -1/) ,(/3,3/) )
 sym(:,:,6) = RESHAPE( (/1, 1, 0, -1, 0, 0, 0, 0, -1/) ,(/3,3/) )

! Number of classes and corresponding indeces
 nclass = 6
 ABI_ALLOCATE(class_ids,(2,nclass))
 class_ids(1,1) = 1
 class_ids(2,1) = 1
 class_ids(1,2) = 2
 class_ids(2,2) = 2
 class_ids(1,3) = 3
 class_ids(2,3) = 3
 class_ids(1,4) = 4
 class_ids(2,4) = 4
 class_ids(1,5) = 5
 class_ids(2,5) = 5
 class_ids(1,6) = 6
 class_ids(2,6) = 6

 ABI_ALLOCATE(class_names,(6))
 class_names(1) = "1+" 
 class_names(2) = "3+" 
 class_names(3) = "3+" 
 class_names(4) = "-2-" 
 class_names(5) = "-6-" 
 class_names(6) = "-6-" 

! List of irreducible representations.
 ABI_ALLOCATE(Irr,(6))
 Irr(1)%name = "Ag"
 Irr(1)%dim = 1
 Irr(1)%nsym = 6
 ABI_ALLOCATE(Irr(1)%mat,(1,1,6))
 Irr(1)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(1)%mat(:,:,2) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(1)%mat(:,:,3) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(1)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(1)%mat(:,:,5) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(1)%mat(:,:,6) =  RESHAPE( (/1.0/), (/1, 1/) )

 Irr(2)%name = "Au"
 Irr(2)%dim = 1
 Irr(2)%nsym = 6
 ABI_ALLOCATE(Irr(2)%mat,(1,1,6))
 Irr(2)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(2)%mat(:,:,2) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(2)%mat(:,:,3) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(2)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
 Irr(2)%mat(:,:,5) =  RESHAPE( (/-1.0/), (/1, 1/) )
 Irr(2)%mat(:,:,6) =  RESHAPE( (/-1.0/), (/1, 1/) )

 Irr(3)%name = "Eg1"
 Irr(3)%dim = 1
 Irr(3)%nsym = 6
 ABI_ALLOCATE(Irr(3)%mat,(1,1,6))
 Irr(3)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(3)%mat(:,:,2) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
 Irr(3)%mat(:,:,3) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
 Irr(3)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(3)%mat(:,:,5) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
 Irr(3)%mat(:,:,6) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )

 Irr(4)%name = "Eu1"
 Irr(4)%dim = 1
 Irr(4)%nsym = 6
 ABI_ALLOCATE(Irr(4)%mat,(1,1,6))
 Irr(4)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(4)%mat(:,:,2) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
 Irr(4)%mat(:,:,3) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
 Irr(4)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
 Irr(4)%mat(:,:,5) =  RESHAPE( (/0.5-0.86603*j/), (/1, 1/) )
 Irr(4)%mat(:,:,6) =  RESHAPE( (/0.5+0.86603*j/), (/1, 1/) )

 Irr(5)%name = "Eg2"
 Irr(5)%dim = 1
 Irr(5)%nsym = 6
 ABI_ALLOCATE(Irr(5)%mat,(1,1,6))
 Irr(5)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(5)%mat(:,:,2) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
 Irr(5)%mat(:,:,3) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
 Irr(5)%mat(:,:,4) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(5)%mat(:,:,5) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
 Irr(5)%mat(:,:,6) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )

 Irr(6)%name = "Eu2"
 Irr(6)%dim = 1
 Irr(6)%nsym = 6
 ABI_ALLOCATE(Irr(6)%mat,(1,1,6))
 Irr(6)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 Irr(6)%mat(:,:,2) =  RESHAPE( (/-0.5-0.86603*j/), (/1, 1/) )
 Irr(6)%mat(:,:,3) =  RESHAPE( (/-0.5+0.86603*j/), (/1, 1/) )
 Irr(6)%mat(:,:,4) =  RESHAPE( (/-1.0/), (/1, 1/) )
 Irr(6)%mat(:,:,5) =  RESHAPE( (/0.5+0.86603*j/), (/1, 1/) )
 Irr(6)%mat(:,:,6) =  RESHAPE( (/0.5-0.86603*j/), (/1, 1/) )

 RETURN
  if (.FALSE.) write(std_out,*) j
 end subroutine ptg_C3i 
!!***
