Octopus
symmetries.F90
Go to the documentation of this file.
1!! Copyright (C) 2009 X. Andrade
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use debug_oct_m
23 use global_oct_m
24 use iso_c_binding
25 use, intrinsic :: iso_fortran_env
27 use math_oct_m
29 use mpi_oct_m
31 use parser_oct_m
33 use string_oct_m
34 use space_oct_m
35 use spglib_f08
37
38 implicit none
39
40 private
41
42 public :: &
51
52 type symmetries_t
53 private
54 type(symm_op_t), allocatable, public :: ops(:)
55 integer, public :: nops = 0
56 real(real64) :: breakdir(1:3)
57 integer, public :: periodic_dim
58 integer :: space_group
59 logical :: any_non_spherical
60 logical :: symmetries_compute = .false.
61 character(len=6) :: group_name = ""
62 character(len=30) :: group_elements = ""
63 character(len=11) :: symbol = ""
64 character(len=7) :: schoenflies = ""
65
66 type(symm_op_t), allocatable, public :: non_symmorphic_ops(:)
67 integer, public :: nops_nonsymmorphic = 0
68 contains
69 procedure :: copy => symmetries_copy
70 generic :: assignment(=) => copy
72 end type symmetries_t
73
74 real(real64), parameter, public :: default_symprec = 1.e-5_real64
75 real(real64), public :: symprec
76
78 interface
79 subroutine symmetries_finite_init(natoms, types, positions, verbosity, point_group)
80 use, intrinsic :: iso_fortran_env
81 integer, intent(in) :: natoms
82 integer, intent(in) :: types
83 real(real64), intent(in) :: positions
84 integer, intent(in) :: verbosity
85 integer, intent(out) :: point_group
86 end subroutine symmetries_finite_init
87
88 subroutine symmetries_finite_get_group_name(point_group, name)
89 integer, intent(in) :: point_group
90 character(len=*), intent(out) :: name
92
93 subroutine symmetries_finite_get_group_elements(point_group, elements)
94 integer, intent(in) :: point_group
95 character(len=*), intent(out) :: elements
97
98 subroutine symmetries_finite_end()
99 end subroutine symmetries_finite_end
100 end interface
101
102 interface symmetries_t
103 module procedure symmetries_constructor
104 end interface symmetries_t
105
106contains
107
108 function symmetries_constructor(namespace, space, latt, n_sites, site_pos, site_type, spherical_site) result(this)
109 type(namespace_t), intent(in) :: namespace
110 class(space_t), intent(in) :: space
111 type(lattice_vectors_t), intent(in) :: latt
112 integer, intent(in) :: n_sites
113 real(real64), intent(in) :: site_pos(:,:)
114 integer, intent(in) :: site_type(1:n_sites)
115 logical, intent(in) :: spherical_site(:)
116 type(symmetries_t) :: this
117
118 integer :: dim4syms
119 integer :: idir, isite, isite_symm, iop, verbosity, point_group
120 real(real64) :: lattice(1:3, 1:3)
121 real(real64), allocatable :: position(:, :)
122 type(block_t) :: blk
123 type(symm_op_t) :: tmpop
124 integer :: identity(3,3)
125 logical :: found_identity, is_supercell
126 logical :: def_sym_comp
127 real(real64) :: rsite(space%dim)
128
129 type(SpglibDataset) :: spg_dataset
130 type(SpglibSpacegroupType) :: spg_spacegroup
131
132 push_sub(symmetries_constructor)
133
134 ! if someone cares, they could try to analyze the symmetry point group of the individual species too
135 this%any_non_spherical = any(.not. spherical_site)
136
137 this%periodic_dim = space%periodic_dim
138
139 dim4syms = min(3, space%dim)
140
141 def_sym_comp = (n_sites < 100) .or. space%is_periodic()
142 def_sym_comp = def_sym_comp .and. space%dim == 3
143
144 !%Variable SymmetriesCompute
145 !%Type logical
146 !%Section Execution::Symmetries
147 !%Description
148 !% If disabled, <tt>Octopus</tt> will not compute
149 !% nor print the symmetries.
150 !%
151 !% By default, symmetries are computed when running in 3
152 !% dimensions for systems with less than 100 atoms.
153 !% For periodic systems, the default is always true, irrespective of the number of atoms.
154 !%End
155 call parse_variable(namespace, 'SymmetriesCompute', def_sym_comp, this%symmetries_compute)
157 !%Variable SymmetriesTolerance
158 !%Type float
159 !%Section Execution::Symmetries
160 !%Description
161 !% For periodic systems, this variable controls the tolerance used by the symmetry finder
162 !% (spglib) to find the spacegroup and symmetries of the crystal.
163 !%End
164 call parse_variable(namespace, 'SymmetriesTolerance', default_symprec, symprec)
165
166
167 if (this%symmetries_compute .and. space%dim /= 3) then
168 call messages_experimental('symmetries for non 3D systems', namespace=namespace)
169 end if
170
171 if (this%any_non_spherical .or. .not. this%symmetries_compute) then
174 return
175 end if
176
177 ! In all cases, we must check that the grid respects the symmetries. --DAS
178
179 if (space%periodic_dim == 0) then
180
182
183 ! for the moment symmetries are only used for information, so we compute them only on one node.
184 if (mpi_grp_is_root(mpi_world)) then
185 verbosity = -1
187 safe_allocate(position(1:3, 1:n_sites))
188
189 do isite = 1, n_sites
190 position(1:3, isite) = m_zero
191 position(1:dim4syms, isite) = site_pos(1:dim4syms, isite)
192 end do
193
194 if (this%symmetries_compute) then
195 call symmetries_finite_init(n_sites, site_type(1), position(1, 1), verbosity, point_group)
196 if (point_group > -1) then
197 call symmetries_finite_get_group_name(point_group, this%group_name)
198 call symmetries_finite_get_group_elements(point_group, this%group_elements)
199 else
200 this%group_name = ""
201 this%group_elements = ""
202 this%symbol = ""
203 this%schoenflies = ""
204 this%symmetries_compute = .false.
205 end if
207 end if
208 safe_deallocate_a(position)
209 end if
210
211 else
212
213 safe_allocate(position(1:3, 1:n_sites))
214
215 do isite = 1, n_sites
216 position(1:3,isite) = m_zero
217
218 ! Transform atomic positions to reduced coordinates
219 position(1:dim4syms, isite) = latt%cart_to_red(site_pos(1:dim4syms, isite))
220 position(1:dim4syms, isite) = position(1:dim4syms, isite) - m_half
221 do idir = 1, dim4syms
222 position(idir, isite) = position(idir, isite) - anint(position(idir, isite))
223 end do
224 position(1:dim4syms, isite) = position(1:dim4syms,isite) + m_half
225 end do
226
227 lattice = m_zero
228 !NOTE: Why "inverse matrix" ? (NTD)
229 ! get inverse matrix to extract reduced coordinates for spglib
230 lattice(1:space%periodic_dim, 1:space%periodic_dim) = latt%rlattice(1:space%periodic_dim, 1:space%periodic_dim)
231 ! transpose the lattice vectors for use in spglib as row-major matrix
232 lattice(:,:) = transpose(lattice(:,:))
233 ! spglib always assume 3D periodicity, so we need to set the lattice vectors along the non-periodic dimensions.
234 ! Here we choose a value that should guarantee that no incorrect symmetries are found along the non-periodic dimensions.
235 do idir = space%periodic_dim + 1, 3
236 if (idir <= space%dim) then
237 lattice(idir, idir) = m_two*(maxval(site_pos(idir, :)) - minval(site_pos(idir, :))) + m_one
238 else
239 lattice(idir, idir) = m_one
240 end if
241 end do
242
243 spg_dataset = spg_get_dataset(lattice, position, site_type, n_sites, symprec)
244 if (spg_dataset%spglib_error /= 0) then
245 message(1) = "Symmetry analysis failed in spglib. Disabling symmetries."
246 call messages_warning(1, namespace=namespace)
247
248 do isite = 1, n_sites
249 write(message(1),'(a,i6,a,3f12.6,a,3f12.6)') 'type ', site_type(isite), &
250 ' reduced coords ', position(:, isite), ' cartesian coords ', site_pos(:, isite)
251 call messages_info(1, namespace=namespace)
252 end do
253
254 call init_identity()
256 return
257 end if
258
259 this%space_group = spg_dataset%spacegroup_number
260 this%symbol = spg_dataset%international_symbol
261 spg_spacegroup = spg_get_spacegroup_type(spg_dataset%hall_number)
262 this%schoenflies = spg_spacegroup%schoenflies
263
264 do iop = 1, spg_dataset%n_operations
265 ! transpose due to array order difference between C and fortran
266 spg_dataset%rotations(:,:,iop) = transpose(spg_dataset%rotations(:,:,iop))
267 ! sometimes spglib may return lattice vectors as 'fractional' translations
268 spg_dataset%translations(:, iop) = spg_dataset%translations(:, iop) - &
269 anint(spg_dataset%translations(:, iop) + m_half * symprec)
270 end do
271
272 ! we need to check that it is not a supercell, as in the QE routine (sgam_at)
273 ! they disable fractional translations if the identity has one, because the sym ops might not form a group.
274 ! spglib may return duplicate operations in this case!
275 is_supercell = (spg_dataset%n_operations > 48)
276 found_identity = .false.
277 identity = diagonal_matrix(3, 1)
278 do iop = 1, spg_dataset%n_operations
279 if (all(spg_dataset%rotations(1:3, 1:3, iop) == identity(1:3, 1:3))) then
280 found_identity = .true.
281 if (any(abs(spg_dataset%translations(1:3, iop)) > real(symprec, real64) )) then
282 is_supercell = .true.
283 write(message(1),'(a,3f12.6)') 'Identity has a fractional translation ', spg_dataset%translations(1:3, iop)
284 call messages_info(1, namespace=namespace)
285 end if
286 end if
287 end do
288 if (.not. found_identity) then
289 message(1) = "Symmetries internal error: Identity is missing from symmetry operations."
290 call messages_fatal(1, namespace=namespace)
291 end if
292
293 if (is_supercell) then
294 message(1) = "Disabling fractional translations. System appears to be a supercell."
295 call messages_info(1, namespace=namespace)
296 end if
297 ! actually, we do not use fractional translations regardless currently
298
299 ! this is a hack to get things working, this variable should be
300 ! eliminated and the direction calculated automatically from the
301 ! perturbations.
302
303 !%Variable SymmetryBreakDir
304 !%Type block
305 !%Section Mesh::Simulation Box
306 !%Description
307 !% This variable specifies a direction in which the symmetry of
308 !% the system will be broken. This is useful for generating <i>k</i>-point
309 !% grids when an external perturbation is applied.
310 !%End
311
312 this%breakdir(1:3) = m_zero
313
314 if (parse_block(namespace, 'SymmetryBreakDir', blk) == 0) then
315
316 do idir = 1, dim4syms
317 call parse_block_float(blk, 0, idir - 1, this%breakdir(idir))
318 end do
319
320 call parse_block_end(blk)
321
322 end if
323
324 safe_allocate(this%ops(1:spg_dataset%n_operations))
325 safe_allocate(this%non_symmorphic_ops(1:spg_dataset%n_operations))
326
327 ! check all operations and leave those that kept the symmetry-breaking
328 ! direction invariant and (for the moment) that do not have a translation
329 this%nops = 0
330 ! We also keep track of all non-symmorphic operations
331 this%nops_nonsymmorphic = 0
332 do iop = 1, spg_dataset%n_operations
333 call symm_op_init(tmpop, spg_dataset%rotations(1:3, 1:3, iop), latt, dim4syms, spg_dataset%translations(1:3, iop))
334! call symm_op_init(tmpop, spg_dataset%rotations(1:3, 1:3, iop), latt, dim4syms, real(spg_dataset%translations(1:3, iop), 8))
335 ! If we do not specify SymmetryBreakDir, we want to use all symmetries
336 if( all(abs(this%breakdir) < m_epsilon) ) then
337 if (.not. symm_op_has_translation(tmpop, symprec)) then
338 this%nops = this%nops + 1
339 call symm_op_copy(tmpop, this%ops(this%nops))
340 else
341 this%nops_nonsymmorphic = this%nops_nonsymmorphic + 1
342 call symm_op_copy(tmpop, this%non_symmorphic_ops(this%nops_nonsymmorphic))
343 end if
344 else ! We only test symmorphic symmetries
345 if (symm_op_invariant_cart(tmpop, this%breakdir, symprec) .and. &
346 .not. symm_op_has_translation(tmpop, symprec)) then
347 this%nops = this%nops + 1
348 call symm_op_copy(tmpop, this%ops(this%nops))
349 end if
350 end if
351 end do
352
353 safe_deallocate_a(position)
354
355 end if
356
357
358 ! Checks if that the atomic coordinates are compatible with the symmetries
359 !
360 ! We want to use for instance that
361 !
362 ! \int dr f(Rr) V_isite(r) \nabla f(R(v)) = R\int dr f(r) V_isite(R*r) f(r)
363 !
364 ! and that the operator R should map the position of atom
365 ! isite to the position of some other atom isite_symm, so that
366 !
367 ! V_isite(R*r) = V_isite_symm(r)
368 !
369 do iop = 1, symmetries_number(this)
370 if (iop == symmetries_identity_index(this)) cycle
371
372 do isite = 1, n_sites
373 rsite = symm_op_apply_cart(this%ops(iop), site_pos(:, isite))
374
375 rsite = latt%fold_into_cell(rsite)
376
377 ! find isite_symm
378 do isite_symm = 1, n_sites
379 if (all(abs(rsite - site_pos(:, isite_symm)) < default_symprec)) exit
380 end do
381
382 if (isite_symm > n_sites) then
383 write(message(1),'(a,i6)') 'Internal error: could not find symmetric partner for atom number', isite
384 write(message(2),'(a,i3,a)') 'with symmetry operation number ', iop, '.'
385 call messages_fatal(2, namespace=namespace)
386 end if
387
388 end do
389 end do
390
391
392 call symmetries_write_info(this, space, namespace=namespace)
393
395
396 contains
397
398 subroutine init_identity()
399
400 push_sub(symmetries_init.init_identity)
401
402 safe_allocate(this%ops(1))
403 this%nops = 1
404 call symm_op_init(this%ops(1), diagonal_matrix(3, 1), latt, dim4syms)
405 this%nops_nonsymmorphic = 0
406 this%breakdir = m_zero
407 this%space_group = 1
408
409 pop_sub(symmetries_init.init_identity)
410
411 end subroutine init_identity
412
413 end function symmetries_constructor
414
415 ! -------------------------------------------------------------------------------
416 subroutine symmetries_copy(lhs, rhs)
417 class(symmetries_t), intent(out) :: lhs
418 class(symmetries_t), intent(in) :: rhs
419
420 integer :: iop
421
422 push_sub(symmetries_copy)
423
424 safe_allocate(lhs%ops(1:rhs%nops))
425 do iop = 1, rhs%nops
426 call symm_op_copy(rhs%ops(iop), lhs%ops(iop))
427 end do
428 lhs%nops = rhs%nops
429 safe_allocate(lhs%non_symmorphic_ops(1:rhs%nops_nonsymmorphic))
430 do iop = 1, rhs%nops_nonsymmorphic
431 call symm_op_copy(rhs%non_symmorphic_ops(iop), lhs%non_symmorphic_ops(iop))
432 end do
433 lhs%nops_nonsymmorphic = rhs%nops_nonsymmorphic
434 lhs%breakdir = rhs%breakdir
435 lhs%periodic_dim = rhs%periodic_dim
436 lhs%space_group = rhs%space_group
437 lhs%any_non_spherical = rhs%any_non_spherical
438 lhs%symmetries_compute = rhs%symmetries_compute
439 lhs%group_name = rhs%group_name
440 lhs%group_elements = rhs%group_elements
441 lhs%symbol = rhs%symbol
442 lhs%schoenflies = rhs%schoenflies
443
444 pop_sub(symmetries_copy)
445 end subroutine symmetries_copy
446
447 ! -------------------------------------------------------------------------------
448
449 subroutine symmetries_finalizer(this)
450 type(symmetries_t), intent(inout) :: this
451
452 push_sub(symmetries_finalizer)
453
454 safe_deallocate_a(this%ops)
455 safe_deallocate_a(this%non_symmorphic_ops)
456
457 pop_sub(symmetries_finalizer)
458 end subroutine symmetries_finalizer
459
460 ! -------------------------------------------------------------------------------
461
462 integer pure function symmetries_number(this) result(number)
463 type(symmetries_t), intent(in) :: this
464
465 number = this%nops
466 end function symmetries_number
467
468 ! -------------------------------------------------------------------------------
469
470 subroutine symmetries_apply_kpoint_red(this, iop, aa, bb)
471 type(symmetries_t), intent(in) :: this
472 integer, intent(in) :: iop
473 real(real64), intent(in) :: aa(1:3)
474 real(real64), intent(out) :: bb(1:3)
475
477
478 assert(iop /= 0 .and. abs(iop) <= this%nops)
479
480 !Time-reversal symmetry
481 if (iop < 0) then
482 bb(1:3) = symm_op_apply_transpose_red(this%ops(abs(iop)), -aa(1:3))
483 else
484 bb(1:3) = symm_op_apply_transpose_red(this%ops(abs(iop)), aa(1:3))
485 end if
486
488 end subroutine symmetries_apply_kpoint_red
489
490 ! -------------------------------------------------------------------------------
492 integer pure function symmetries_space_group_number(this) result(number)
493 type(symmetries_t), intent(in) :: this
494
495 number = this%space_group
497
498 ! -------------------------------------------------------------------------------
499
500 logical pure function symmetries_have_break_dir(this) result(have)
501 type(symmetries_t), intent(in) :: this
502
503 have = any(abs(this%breakdir(1:3)) > m_epsilon)
504 end function symmetries_have_break_dir
505
506 ! -------------------------------------------------------------------------------
507
508 integer pure function symmetries_identity_index(this) result(index)
509 type(symmetries_t), intent(in) :: this
510
511 integer :: iop
512
513 do iop = 1, this%nops
514 if (symm_op_is_identity(this%ops(iop))) then
515 index = iop
516 cycle
517 end if
518 end do
519
520 end function symmetries_identity_index
521
522 ! ---------------------------------------------------------
523 subroutine symmetries_write_info(this, space, iunit, namespace)
524 type(symmetries_t), intent(in) :: this
525 class(space_t), intent(in) :: space
526 integer, optional, intent(in) :: iunit
527 type(namespace_t), optional, intent(in) :: namespace
528
529 integer :: iop
530
531 push_sub(symmetries_write_info)
532
533 call messages_print_with_emphasis(msg='Symmetries', iunit=iunit, namespace=namespace)
534
535 if (this%any_non_spherical) then
536 message(1) = "Symmetries are disabled since non-spherically symmetric species may be present."
537 call messages_info(1,iunit = iunit, namespace=namespace)
538 call messages_print_with_emphasis(iunit=iunit, namespace=namespace)
539 pop_sub(symmetries_write_info)
540 return
541 end if
543 if (.not. this%symmetries_compute) then
544 message(1) = "Symmetries have been disabled by SymmetriesCompute = false."
545 call messages_info(1, iunit=iunit, namespace=namespace)
546 call messages_print_with_emphasis(iunit=iunit, namespace=namespace)
547 pop_sub(symmetries_write_info)
548 return
549 end if
550
551 if (space%periodic_dim == 0) then
552 ! At the moment only the root node has information about symetries of finite systems.
553 if (mpi_grp_is_root(mpi_world)) then
554 if (this%symmetries_compute) then
555 call messages_write('Symmetry elements : '//trim(this%group_elements), new_line = .true.)
556 call messages_write('Symmetry group : '//trim(this%group_name))
557 call messages_info(iunit=iunit, namespace=namespace)
558 end if
559 end if
560 else
561 write(message(1),'(a, i4)') 'Space group No. ', this%space_group
562 write(message(2),'(2a)') 'International: ', trim(this%symbol)
563 write(message(3),'(2a)') 'Schoenflies: ', trim(this%schoenflies)
564 call messages_info(3, iunit=iunit, namespace=namespace)
565
566 write(message(1),'(a7,a31,12x,a33)') 'Index', 'Rotation matrix', 'Fractional translations'
567 call messages_info(1, iunit=iunit, namespace=namespace)
568 do iop = 1, this%nops
569 ! list all operations and leave those that kept the symmetry-breaking
570 ! direction invariant and (for the moment) that do not have a translation
571 if (space%dim == 1) then
572 write(message(1),'(i5,1x,a,2x,1(1i4,2x),1f12.6)') iop, ':', symm_op_rotation_matrix_red(this%ops(iop)), &
573 symm_op_translation_vector_red(this%ops(iop))
574 end if
575 if (space%dim == 2) then
576 write(message(1),'(i5,1x,a,2x,2(2i4,2x),2f12.6)') iop, ':', symm_op_rotation_matrix_red(this%ops(iop)), &
577 symm_op_translation_vector_red(this%ops(iop))
578 end if
579 if (space%dim == 3) then
580 write(message(1),'(i5,1x,a,2x,3(3i4,2x),3f12.6)') iop, ':', symm_op_rotation_matrix_red(this%ops(iop)), &
581 symm_op_translation_vector_red(this%ops(iop))
582 end if
583 call messages_info(1, iunit=iunit, namespace=namespace)
584 end do
585 write(message(1), '(a,i5,a)') 'Info: The system has ', this%nops, ' symmetries that can be used.'
586 write(message(2), '(a,i5,a)') 'Info: The system also has ', this%nops_nonsymmorphic, &
587 ' nonsymmorphic symmetries (not used).'
588 call messages_info(2, iunit=iunit, namespace=namespace)
589 end if
590 call messages_print_with_emphasis(iunit=iunit, namespace=namespace)
591
592 pop_sub(symmetries_write_info)
594
595 ! ---------------------------------------------------------
597 subroutine symmetries_update_lattice_vectors(this, latt, dim)
598 type(symmetries_t), intent(inout) :: this
599 type(lattice_vectors_t), intent(in) :: latt
600 integer, intent(in) :: dim
602 integer :: iop
603
605
606 do iop = 1, this%nops
607 call symm_op_build_cartesian(this%ops(iop), latt, dim)
608 end do
609
611 end subroutine
612
613end module symmetries_oct_m
614
615!! Local Variables:
616!! mode: f90
617!! coding: utf-8
618!! End:
NOTE: unfortunately, these routines use global variables shared among them.
Definition: symmetries.F90:172
real(real64), parameter, public m_two
Definition: global.F90:189
real(real64), parameter, public m_zero
Definition: global.F90:187
real(real64), parameter, public m_epsilon
Definition: global.F90:203
real(real64), parameter, public m_half
Definition: global.F90:193
real(real64), parameter, public m_one
Definition: global.F90:188
This module is intended to contain "only mathematical" functions and procedures.
Definition: math.F90:115
subroutine, public messages_warning(no_lines, all_nodes, namespace)
Definition: messages.F90:543
subroutine, public messages_info(no_lines, iunit, verbose_limit, stress, all_nodes, namespace)
Definition: messages.F90:624
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:160
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:420
subroutine, public messages_experimental(name, namespace)
Definition: messages.F90:1097
logical function mpi_grp_is_root(grp)
Is the current MPI process of grpcomm, root.
Definition: mpi.F90:430
type(mpi_grp_t), public mpi_world
Definition: mpi.F90:266
integer function, public parse_block(namespace, name, blk, check_varinfo_)
Definition: parser.F90:618
type(spglibdataset) function, public spg_get_dataset(lattice, position, types, num_atom, symprec)
Definition: spglib_f08.F90:532
type(spglibspacegrouptype) function, public spg_get_spacegroup_type(hall_number)
Definition: spglib_f08.F90:415
subroutine, public symm_op_copy(inp, outp)
Definition: symm_op.F90:272
logical pure function, public symm_op_has_translation(this, prec)
Definition: symm_op.F90:289
subroutine, public symm_op_init(this, rot, latt, dim, trans)
Definition: symm_op.F90:186
subroutine, public symmetries_update_lattice_vectors(this, latt, dim)
Updates the symmetry operations when lattice vectors are updated.
Definition: symmetries.F90:691
subroutine, public symmetries_apply_kpoint_red(this, iop, aa, bb)
Definition: symmetries.F90:564
integer pure function, public symmetries_space_group_number(this)
Definition: symmetries.F90:586
integer pure function, public symmetries_identity_index(this)
Definition: symmetries.F90:602
type(symmetries_t) function symmetries_constructor(namespace, space, latt, n_sites, site_pos, site_type, spherical_site)
Definition: symmetries.F90:202
subroutine, public symmetries_write_info(this, space, iunit, namespace)
Definition: symmetries.F90:617
integer pure function, public symmetries_number(this)
Definition: symmetries.F90:556
subroutine symmetries_copy(lhs, rhs)
Definition: symmetries.F90:510
logical pure function, public symmetries_have_break_dir(this)
Definition: symmetries.F90:594
subroutine symmetries_finalizer(this)
Definition: symmetries.F90:543
subroutine init_identity()
Definition: symmetries.F90:492
int true(void)