TABLE OF CONTENTS


ABINIT/ptg_Ci [ Functions ]

[ Top ] [ Functions ]

NAME

 ptg_Ci

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  Ci (-1)
 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_Ci
 42 contains
 43 !!**
 44 
 45 
 46 
 47  subroutine ptg_Ci (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_Ci'
 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 = 2
 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( (/-1, 0, 0, 0, -1, 0, 0, 0, -1/) ,(/3,3/) )
 73 
 74 ! Number of classes and corresponding indeces
 75  nclass = 2
 76  ABI_MALLOC(class_ids, (2,nclass))
 77  class_ids(1,1) = 1
 78  class_ids(2,1) = 1
 79  class_ids(1,2) = 2
 80  class_ids(2,2) = 2
 81 
 82 ABI_MALLOC(class_names,(2))
 83  class_names(1) = "1+" 
 84  class_names(2) = "-2-" 
 85 
 86 ! List of irreducible representations.
 87  ABI_DT_MALLOC(Irr, (2))
 88  Irr(1)%name = "Ag"
 89  Irr(1)%dim = 1
 90  Irr(1)%nsym = 2
 91  ABI_MALLOC(Irr(1)%mat, (1,1,2))
 92  Irr(1)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
 93  Irr(1)%mat(:,:,2) =  RESHAPE( (/1.0/), (/1, 1/) )
 94 
 95  Irr(2)%name = "Au"
 96  Irr(2)%dim = 1
 97  Irr(2)%nsym = 2
 98  ABI_MALLOC(Irr(2)%mat, (1,1,2))
 99  Irr(2)%mat(:,:,1) =  RESHAPE( (/1.0/), (/1, 1/) )
100  Irr(2)%mat(:,:,2) =  RESHAPE( (/-1.0/), (/1, 1/) )
101 
102  RETURN
103   if (.FALSE.) write(std_out,*) j
104  end subroutine ptg_Ci