# Magnetic arrangement of every magnetic isotropy subgroup on a crystal
# (crystod-mag -c POSCAR --element EL --irrep IR [IR2 ...]); testsuite section 05-01
#
# The table of crystod-mag --parent SG --irrep IR (several irreps: the coupled
# table) placed on the Mn sites of Mn3GaN: for every row, the spin modes that
# transform with the matrices of the table, times the row's order parameter,
# give the moments on the magnetic cell common to every arm (2x2x2 for R4- and
# M3-). The group of every arrangement is identified again on the structure
# on the moments as written (column "structure" and the "check (on the written
# moments):" line of every block). The letters take generic values (printed):
# other nonzero values with the same pattern of zero and equal components give
# the same group; the "reproduce:" line gives the --order-parameter numbers
# that rebuild a block. With several irreps each part is scaled to largest
# moment 1 and weighted: by --coefficients, or per row 1 : 1 unless that would
# cancel moments between the parts (then 1 : 0.5, ..., with the reason).
# An irrep the Mn spins do not carry is an error that lists the decomposition:
#   crystod-mag -c POSCAR_Mn3GaN_Pm-3m --element Mn --irrep R4+
# One direction: --order-parameter "0 0 a 0 0 b" (with --irrep R4- M3-).
#
# Files of a run: one VESTA file per row (POSCAR_Mn3GaN_spin_R4-_01_139.540.vesta,
# ...; not kept here), the magnetic cell SPOSCAR_Mn3GaN_Pm-3m_R4- (atom order of
# the MAGMOM lines) and the report samm_Mn3GaN_Mn_R4-. The report of
#   crystod-mag -c POSCAR_Mn3GaN_Pm-3m --element Mn --irrep R4- M3-
# (22 coupled rows) is kept as samm_Mn3GaN_Mn_R4-_M3-.

$ crystod-mag -c POSCAR_Mn3GaN_Pm-3m --element Mn --irrep R4-

* Structure *
  Space group: Pm-3m (#221)
  Magnetic sites: Mn x 3
    Mn1: [0.0, 0.0, 0.5]
    Mn2: [0.0, 0.5, 0.0]
    Mn3: [0.5, 0.0, 0.0]

* Spin (axial-vector) representation of Mn sites at the k points of the irreps *
  k point (primitive): R [0.5, 0.5, 0.5]
    1.0 [R1-(1)] + 1.0 [R3-(2)] + 1.0 [R4-(3)] + 1.0 [R5-(3)]

* Irrep *
R4-: order parameter dimension 3

* Copies in the spin representation *
  R4-: 1 copy: Mn [AFM (q != 0)]

* Magnetic cell *
  Magnetic (commensurate) supercell: 2x2x2 (8 primitive cells, 40 atoms), common to every arm of R4-
  spin modes: |O(g) Psi - Psi D(g)| <= 2.3e-16 over the elements of G/T_S, Psi^T Psi = c 1 within 2.2e-16

* Order parameter directions and isotropy subgroups *
No.  irrep                subgroup           size  index structure
1    R4-(0,0,a)           139.540 I_c4/mmm   2     6     139.540 same
2    R4-(a,a,a)           166.102 R_I-3m     2     8     166.102 same
3    R4-(0,a,a)           74.562 I_bmma      2     12    74.562 same
4    R4-(a,a,b)           12.63 C_c2/m       2     24    12.63 same
5    R4-(0,a,b)           12.64 C_a2/m       2     24    12.64 same
6    R4-(a,b,c)           2.7 P_S-1          2     48    2.7 same

Magnetic (time-odd) irreps of the paramagnetic group Pm-3m1': R4-
= ISOTROPY's mR4-;
subgroup = BNS number and symbol; size = cell of the translations without
time reversal, in parent primitive cells;
index = [Pm-3m1' : H], the number of domains.

Conventions: the magnetic isotropy subgroups of the ISOTROPY Software Suite
(H. T. Stokes, D. M. Hatch and B. J. Campbell, https://iso.byu.edu); BNS numbers
and symbols of ISO-MAG (H. T. Stokes and B. J. Campbell, 2010).

The components of a direction refer to the irrep basis of the table (as with
--parent), not to the axes of the POSCAR; the spin listings give the moments.

structure = the BNS group spglib finds on the arrangement exported for the row
(magnetic cell, all atoms, moments), compared with the table: same, enantiomorph
(the partner type), different; (xN) for N choices of copies.

* 1: R4-(0,0,a) -> 139.540 I_c4/mmm *
  order parameter: a = 1
  reproduce: --order-parameter "0 0 0.816497"
  moments: |m| = 1.0000 on 16 of 24 Mn sites; zero on 8 sites (no moment in R4-)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: I_c4/mmm (BNS 139.540, type IV), 32 operations, 16 with time reversal
  magnetic point group: 4/mmm1'
  UNI symbol: I4/mmm.1'_c[rP4/mmm]; point group 4/mmm.1'
  check (on the written moments): table 139.540, structure 139.540 same; 128 elements of G1'/T_S fix the moments, 128 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [1.0000, 0.0000, 0.0000]
    Mn2: [-1.0000, 0.0000, 0.0000]
    Mn3: [-1.0000, 0.0000, 0.0000]
    Mn4: [1.0000, 0.0000, 0.0000]
    Mn5: [-1.0000, 0.0000, 0.0000]
    Mn6: [1.0000, 0.0000, 0.0000]
    Mn7: [1.0000, 0.0000, 0.0000]
    Mn8: [-1.0000, 0.0000, 0.0000]
    Mn9: [0.0000, 0.0000, 0.0000]
    Mn10: [0.0000, 0.0000, 0.0000]
    Mn11: [0.0000, 0.0000, 0.0000]
    Mn12: [0.0000, 0.0000, 0.0000]
    Mn13: [0.0000, 0.0000, 0.0000]
    Mn14: [0.0000, 0.0000, 0.0000]
    Mn15: [0.0000, 0.0000, 0.0000]
    Mn16: [0.0000, 0.0000, 0.0000]
    Mn17: [0.0000, 0.0000, -1.0000]
    Mn18: [0.0000, 0.0000, 1.0000]
    Mn19: [0.0000, 0.0000, 1.0000]
    Mn20: [0.0000, 0.0000, -1.0000]
    Mn21: [0.0000, 0.0000, 1.0000]
    Mn22: [0.0000, 0.0000, -1.0000]
    Mn23: [0.0000, 0.0000, -1.0000]
    Mn24: [0.0000, 0.0000, 1.0000]
  MAGMOM = 1.0000 0.0000 0.0000   -1.0000 0.0000 0.0000   -1.0000 0.0000 0.0000   1.0000 0.0000 0.0000   -1.0000 0.0000 0.0000   1.0000 0.0000 0.0000   1.0000 0.0000 0.0000   -1.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 0.0000   0.0000 0.0000 -1.0000   0.0000 0.0000 1.0000   0.0000 0.0000 1.0000   0.0000 0.0000 -1.0000   0.0000 0.0000 1.0000   0.0000 0.0000 -1.0000   0.0000 0.0000 -1.0000   0.0000 0.0000 1.0000   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* 2: R4-(a,a,a) -> 166.102 R_I-3m *
  order parameter: a = 1
  reproduce: --order-parameter "0.57735 0.57735 0.57735"
  moments: equal on all 24 Mn sites (|m| = 1.0000)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: R_I-3m (BNS 166.102, type IV), 24 operations, 12 with time reversal
  magnetic point group: -3m1'
  UNI symbol: R-3m.1'_c[R-3m]; point group -3m.1'
  check (on the written moments): table 166.102, structure 166.102 same; 96 elements of G1'/T_S fix the moments, 96 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [0.7071, -0.7071, 0.0000]
    Mn2: [-0.7071, 0.7071, 0.0000]
    Mn3: [-0.7071, 0.7071, 0.0000]
    Mn4: [0.7071, -0.7071, 0.0000]
    Mn5: [-0.7071, 0.7071, 0.0000]
    Mn6: [0.7071, -0.7071, 0.0000]
    Mn7: [0.7071, -0.7071, 0.0000]
    Mn8: [-0.7071, 0.7071, 0.0000]
    Mn9: [-0.7071, 0.0000, 0.7071]
    Mn10: [0.7071, 0.0000, -0.7071]
    Mn11: [0.7071, 0.0000, -0.7071]
    Mn12: [-0.7071, 0.0000, 0.7071]
    Mn13: [0.7071, 0.0000, -0.7071]
    Mn14: [-0.7071, 0.0000, 0.7071]
    Mn15: [-0.7071, 0.0000, 0.7071]
    Mn16: [0.7071, 0.0000, -0.7071]
    Mn17: [0.0000, 0.7071, -0.7071]
    Mn18: [0.0000, -0.7071, 0.7071]
    Mn19: [0.0000, -0.7071, 0.7071]
    Mn20: [0.0000, 0.7071, -0.7071]
    Mn21: [0.0000, -0.7071, 0.7071]
    Mn22: [0.0000, 0.7071, -0.7071]
    Mn23: [0.0000, 0.7071, -0.7071]
    Mn24: [0.0000, -0.7071, 0.7071]
  MAGMOM = 0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   -0.7071 0.7071 0.0000   0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   0.7071 -0.7071 0.0000   0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   0.7071 0.0000 -0.7071   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   -0.7071 0.0000 0.7071   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   0.0000 0.7071 -0.7071   0.0000 -0.7071 0.7071   0.0000 -0.7071 0.7071   0.0000 0.7071 -0.7071   0.0000 -0.7071 0.7071   0.0000 0.7071 -0.7071   0.0000 0.7071 -0.7071   0.0000 -0.7071 0.7071   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* 3: R4-(0,a,a) -> 74.562 I_bmma *
  order parameter: a = 1
  reproduce: --order-parameter "0 0.57735 0.57735"
  moments: 2 distinct magnitudes on 24 Mn sites: 1.0000 (x8), 0.7071 (x16)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: I_bmma (BNS 74.562, type IV), 16 operations, 8 with time reversal
  magnetic point group: mmm1'
  UNI symbol: Imma.1'_b[Bmmm]; point group mmm.1'
  check (on the written moments): table 74.562, structure 74.562 same; 64 elements of G1'/T_S fix the moments, 64 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [0.7071, -0.7071, 0.0000]
    Mn2: [-0.7071, 0.7071, 0.0000]
    Mn3: [-0.7071, 0.7071, 0.0000]
    Mn4: [0.7071, -0.7071, 0.0000]
    Mn5: [-0.7071, 0.7071, 0.0000]
    Mn6: [0.7071, -0.7071, 0.0000]
    Mn7: [0.7071, -0.7071, 0.0000]
    Mn8: [-0.7071, 0.7071, 0.0000]
    Mn9: [0.0000, 0.0000, 0.7071]
    Mn10: [0.0000, 0.0000, -0.7071]
    Mn11: [0.0000, 0.0000, -0.7071]
    Mn12: [0.0000, 0.0000, 0.7071]
    Mn13: [0.0000, 0.0000, -0.7071]
    Mn14: [0.0000, 0.0000, 0.7071]
    Mn15: [0.0000, 0.0000, 0.7071]
    Mn16: [0.0000, 0.0000, -0.7071]
    Mn17: [0.0000, 0.0000, -0.7071]
    Mn18: [0.0000, 0.0000, 0.7071]
    Mn19: [0.0000, 0.0000, 0.7071]
    Mn20: [0.0000, 0.0000, -0.7071]
    Mn21: [0.0000, 0.0000, 0.7071]
    Mn22: [0.0000, 0.0000, -0.7071]
    Mn23: [0.0000, 0.0000, -0.7071]
    Mn24: [0.0000, 0.0000, 0.7071]
  MAGMOM = 0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   -0.7071 0.7071 0.0000   0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   0.7071 -0.7071 0.0000   0.7071 -0.7071 0.0000   -0.7071 0.7071 0.0000   0.0000 0.0000 0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 -0.7071   0.0000 0.0000 0.7071   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* 4: R4-(a,a,b) -> 12.63 C_c2/m *
  order parameter: a = 1, b = 0.874
  the relative amplitudes are not fixed by symmetry: other nonzero values that
  keep the pattern of the label (no new zero or equal components) give the
  same group
  reproduce: --order-parameter "0.57735 0.57735 0.504623"
  moments: 2 distinct magnitudes on 24 Mn sites: 1.0000 (x8), 0.9391 (x16)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: C_c2/m (BNS 12.63, type IV), 8 operations, 4 with time reversal
  magnetic point group: 2/m1'
  UNI symbol: C2/m.1'_c[C2/m]; point group 2/m.1'
  check (on the written moments): table 12.63, structure 12.63 same; 32 elements of G1'/T_S fix the moments, 32 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [0.6180, -0.7071, 0.0000]
    Mn2: [-0.6180, 0.7071, 0.0000]
    Mn3: [-0.6180, 0.7071, 0.0000]
    Mn4: [0.6180, -0.7071, 0.0000]
    Mn5: [-0.6180, 0.7071, 0.0000]
    Mn6: [0.6180, -0.7071, 0.0000]
    Mn7: [0.6180, -0.7071, 0.0000]
    Mn8: [-0.6180, 0.7071, 0.0000]
    Mn9: [-0.7071, 0.0000, 0.7071]
    Mn10: [0.7071, 0.0000, -0.7071]
    Mn11: [0.7071, 0.0000, -0.7071]
    Mn12: [-0.7071, 0.0000, 0.7071]
    Mn13: [0.7071, 0.0000, -0.7071]
    Mn14: [-0.7071, 0.0000, 0.7071]
    Mn15: [-0.7071, 0.0000, 0.7071]
    Mn16: [0.7071, 0.0000, -0.7071]
    Mn17: [0.0000, 0.7071, -0.6180]
    Mn18: [0.0000, -0.7071, 0.6180]
    Mn19: [0.0000, -0.7071, 0.6180]
    Mn20: [0.0000, 0.7071, -0.6180]
    Mn21: [0.0000, -0.7071, 0.6180]
    Mn22: [0.0000, 0.7071, -0.6180]
    Mn23: [0.0000, 0.7071, -0.6180]
    Mn24: [0.0000, -0.7071, 0.6180]
  MAGMOM = 0.6180 -0.7071 0.0000   -0.6180 0.7071 0.0000   -0.6180 0.7071 0.0000   0.6180 -0.7071 0.0000   -0.6180 0.7071 0.0000   0.6180 -0.7071 0.0000   0.6180 -0.7071 0.0000   -0.6180 0.7071 0.0000   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   0.7071 0.0000 -0.7071   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   -0.7071 0.0000 0.7071   -0.7071 0.0000 0.7071   0.7071 0.0000 -0.7071   0.0000 0.7071 -0.6180   0.0000 -0.7071 0.6180   0.0000 -0.7071 0.6180   0.0000 0.7071 -0.6180   0.0000 -0.7071 0.6180   0.0000 0.7071 -0.6180   0.0000 0.7071 -0.6180   0.0000 -0.7071 0.6180   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* 5: R4-(0,a,b) -> 12.64 C_a2/m *
  order parameter: a = 1, b = 0.618
  the relative amplitudes are not fixed by symmetry: other nonzero values that
  keep the pattern of the label (no new zero or equal components) give the
  same group
  reproduce: --order-parameter "0 0.694553 0.429258"
  moments: 3 distinct magnitudes on 24 Mn sites: 1.0000 (x8), 0.8507 (x8), 0.5257 (x8)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: C_a2/m (BNS 12.64, type IV), 8 operations, 4 with time reversal
  magnetic point group: 2/m1'
  UNI symbol: C2/m.1'_a[P2/m]; point group 2/m.1'
  check (on the written moments): table 12.64, structure 12.64 same; 32 elements of G1'/T_S fix the moments, 32 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [0.5257, -0.8507, 0.0000]
    Mn2: [-0.5257, 0.8507, 0.0000]
    Mn3: [-0.5257, 0.8507, 0.0000]
    Mn4: [0.5257, -0.8507, 0.0000]
    Mn5: [-0.5257, 0.8507, 0.0000]
    Mn6: [0.5257, -0.8507, 0.0000]
    Mn7: [0.5257, -0.8507, 0.0000]
    Mn8: [-0.5257, 0.8507, 0.0000]
    Mn9: [0.0000, 0.0000, 0.8507]
    Mn10: [0.0000, 0.0000, -0.8507]
    Mn11: [0.0000, 0.0000, -0.8507]
    Mn12: [0.0000, 0.0000, 0.8507]
    Mn13: [0.0000, 0.0000, -0.8507]
    Mn14: [0.0000, 0.0000, 0.8507]
    Mn15: [0.0000, 0.0000, 0.8507]
    Mn16: [0.0000, 0.0000, -0.8507]
    Mn17: [0.0000, 0.0000, -0.5257]
    Mn18: [0.0000, 0.0000, 0.5257]
    Mn19: [0.0000, 0.0000, 0.5257]
    Mn20: [0.0000, 0.0000, -0.5257]
    Mn21: [0.0000, 0.0000, 0.5257]
    Mn22: [0.0000, 0.0000, -0.5257]
    Mn23: [0.0000, 0.0000, -0.5257]
    Mn24: [0.0000, 0.0000, 0.5257]
  MAGMOM = 0.5257 -0.8507 0.0000   -0.5257 0.8507 0.0000   -0.5257 0.8507 0.0000   0.5257 -0.8507 0.0000   -0.5257 0.8507 0.0000   0.5257 -0.8507 0.0000   0.5257 -0.8507 0.0000   -0.5257 0.8507 0.0000   0.0000 0.0000 0.8507   0.0000 0.0000 -0.8507   0.0000 0.0000 -0.8507   0.0000 0.0000 0.8507   0.0000 0.0000 -0.8507   0.0000 0.0000 0.8507   0.0000 0.0000 0.8507   0.0000 0.0000 -0.8507   0.0000 0.0000 -0.5257   0.0000 0.0000 0.5257   0.0000 0.0000 0.5257   0.0000 0.0000 -0.5257   0.0000 0.0000 0.5257   0.0000 0.0000 -0.5257   0.0000 0.0000 -0.5257   0.0000 0.0000 0.5257   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* 6: R4-(a,b,c) -> 2.7 P_S-1 *
  order parameter: a = 1, b = 0.618, c = 0.4142
  the relative amplitudes are not fixed by symmetry: other nonzero values that
  keep the pattern of the label (no new zero or equal components) give the
  same group
  reproduce: --order-parameter "0.694553 0.429258 0.287693"
  moments: 3 distinct magnitudes on 24 Mn sites: 1.0000 (x8), 0.9208 (x8), 0.6329 (x8)
  net moment over the magnetic cell: [0.0, 0.0, 0.0]
  magnetic space group: P_S-1 (BNS 2.7, type IV), 4 operations, 2 with time reversal
  magnetic point group: -11'
  UNI symbol: P-1.1'_c[P-1]; point group -1.1'
  check (on the written moments): table 2.7, structure 2.7 same; 16 elements of G1'/T_S fix the moments, 16 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: noncollinear (not classified)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) ([2, 2, 2] magnetic supercell):
    Mn1: [0.3524, -0.5257, 0.0000]
    Mn2: [-0.3524, 0.5257, 0.0000]
    Mn3: [-0.3524, 0.5257, 0.0000]
    Mn4: [0.3524, -0.5257, 0.0000]
    Mn5: [-0.3524, 0.5257, 0.0000]
    Mn6: [0.3524, -0.5257, 0.0000]
    Mn7: [0.3524, -0.5257, 0.0000]
    Mn8: [-0.3524, 0.5257, 0.0000]
    Mn9: [-0.8507, 0.0000, 0.5257]
    Mn10: [0.8507, 0.0000, -0.5257]
    Mn11: [0.8507, 0.0000, -0.5257]
    Mn12: [-0.8507, 0.0000, 0.5257]
    Mn13: [0.8507, 0.0000, -0.5257]
    Mn14: [-0.8507, 0.0000, 0.5257]
    Mn15: [-0.8507, 0.0000, 0.5257]
    Mn16: [0.8507, 0.0000, -0.5257]
    Mn17: [0.0000, 0.8507, -0.3524]
    Mn18: [0.0000, -0.8507, 0.3524]
    Mn19: [0.0000, -0.8507, 0.3524]
    Mn20: [0.0000, 0.8507, -0.3524]
    Mn21: [0.0000, -0.8507, 0.3524]
    Mn22: [0.0000, 0.8507, -0.3524]
    Mn23: [0.0000, 0.8507, -0.3524]
    Mn24: [0.0000, -0.8507, 0.3524]
  MAGMOM = 0.3524 -0.5257 0.0000   -0.3524 0.5257 0.0000   -0.3524 0.5257 0.0000   0.3524 -0.5257 0.0000   -0.3524 0.5257 0.0000   0.3524 -0.5257 0.0000   0.3524 -0.5257 0.0000   -0.3524 0.5257 0.0000   -0.8507 0.0000 0.5257   0.8507 0.0000 -0.5257   0.8507 0.0000 -0.5257   -0.8507 0.0000 0.5257   0.8507 0.0000 -0.5257   -0.8507 0.0000 0.5257   -0.8507 0.0000 0.5257   0.8507 0.0000 -0.5257   0.0000 0.8507 -0.3524   0.0000 -0.8507 0.3524   0.0000 -0.8507 0.3524   0.0000 0.8507 -0.3524   0.0000 -0.8507 0.3524   0.0000 0.8507 -0.3524   0.0000 0.8507 -0.3524   0.0000 -0.8507 0.3524   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0

* Output files *
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_01_139.540.vesta
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_02_166.102.vesta
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_03_74.562.vesta
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_04_12.63.vesta
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_05_12.64.vesta
  Spin arrangement written to: POSCAR_Mn3GaN_spin_R4-_06_2.7.vesta
  Supercell POSCAR written to: SPOSCAR_Mn3GaN_Pm-3m_R4- (atom order of the MAGMOM lines)
  Report written to: samm_Mn3GaN_Mn_R4- (this output)

Reference: H. T. Stokes, D. M. Hatch and B. J. Campbell, ISOTROPY Software Suite,
https://iso.byu.edu (magnetic isotropy subgroups); M.-T. Suzuki et al., PRB 95,
094406 (2017) (cluster multipoles).
Reference (collinear classes): L. Smejkal, J. Sinova and T. Jungwirth, Phys. Rev. X 12, 031042 (2022).

# --conventional: the same table in the conventional cell (centred lattices)
#
# The magnetic cell above is a diagonal supercell of the primitive cell; for an
# I, F, C, A or R lattice it is easier to look at in the conventional cell.
# --conventional writes every arrangement in the conventional cell of
# crystod-mag --qpoint --conventional (the conventional matrix of the centring
# applied to the primitive cell as given: use the standard primitive cell of
# phonopy --symmetry, a PPOSCAR) times the smallest multiples commensurate with
# every arm. The rows, groups, weights and the counts over G1'/T_S stay those of
# the diagonal cell; the moments are re-tiled onto the conventional cell (exact:
# the arrangement is periodic under every translation T with k . T an integer
# for every arm), and the column "structure", the spin listings, the MAGMOM
# lines and the files refer to the conventional cell. Names end in _conv:
# POSCAR_La2CuO4_spin_X3+_01_64.480_conv.vesta, S139_PPOSCAR_La2CuO4_X3+_conv,
# samm_La2CuO4_Cu_X3+_conv (not kept here). La2CuO4 I4/mmm, Cu, X3+ (first
# block; blocks 2 and 3 follow in the same form):

$ crystod-mag -c 139_PPOSCAR_La2CuO4 --element Cu --irrep X3+ --conventional

* Structure *
  Space group: I4/mmm (#139)
  Magnetic sites: Cu x 1
    Cu1: [0.0, 0.0, 0.0]

* Spin (axial-vector) representation of Cu sites at the k points of the irreps *
  k point (primitive): X [0.0, 0.0, 0.5]
    1.0 [X3+(1)] + 1.0 [X4+(1)] + 1.0 [X2+(1)]

* Irrep *
X3+: order parameter dimension 2 (star of 2 arm(s) x small dim 1)

* Copies in the spin representation *
  X3+: 1 copy: Cu [AFM (q != 0)]

* Magnetic cell *
  Magnetic (commensurate) supercell: 2x2x2 (8 primitive cells), common to every arm of X3+: the cell of the spin modes and of the counts over G1'/T_S
  Display cell: conventional (I centring), 2x2x1 cells (8 primitive cells, 56 atoms): the cell of the spin listings, MAGMOM lines, files and the structure check
  spin modes: |O(g) Psi - Psi D(g)| <= 1.9e-16 over the elements of G/T_S, Psi^T Psi = c 1 within 1.1e-16

* Order parameter directions and isotropy subgroups *
No.  irrep                subgroup            size  index structure
1    X3+(0;a)             64.480 C_Amca       2     4     64.480 same
2    X3+(a;a)             138.529 P_C4_2/ncm  4     4     138.529 same
3    X3+(a;b)             56.375 P_Cccn       4     8     56.375 same

Magnetic (time-odd) irreps of the paramagnetic group I4/mmm1': X3+
= ISOTROPY's mX3+;
subgroup = BNS number and symbol; size = cell of the translations without
time reversal, in parent primitive cells;
index = [I4/mmm1' : H], the number of domains.

Conventions: the magnetic isotropy subgroups of the ISOTROPY Software Suite
(H. T. Stokes, D. M. Hatch and B. J. Campbell, https://iso.byu.edu); BNS numbers
and symbols of ISO-MAG (H. T. Stokes and B. J. Campbell, 2010).

The components of a direction refer to the irrep basis of the table (as with
--parent), not to the axes of the POSCAR; the spin listings give the moments.

structure = the BNS group spglib finds on the arrangement exported for the row
(conventional cell as written, all atoms, moments), compared with the table:
same, enantiomorph (the partner type), different; (xN) for N choices of copies.

* 1: X3+(0;a) -> 64.480 C_Amca *
  order parameter: a = 1
  reproduce: --order-parameter "0 1" --conventional
  moments: equal on all 8 Cu sites (|m| = 1.0000)
  net moment over the conventional cell: [0.0, 0.0, 0.0]
  magnetic space group: C_Amca (BNS 64.480, type IV), 16 operations, 8 with time reversal
  magnetic point group: mmm1'
  UNI symbol: Cmca.1'_A[Fmmm]; point group mmm.1'
  check (on the written moments): table 64.480, structure 64.480 same; 64 elements of G1'/T_S fix the moments, 64 the order parameter
  allowed by symmetry: net magnetization none; electric polarization none; linear magnetoelectric effect none; piezomagnetism none
  collinear order: antiferromagnet (conventional: a translation exchanges the sublattices, T tau)
  spin directions (magnetic atoms, numbered as in the MAGMOM line) (conventional cell, 2x2x1 cells):
    Cu17: [0.7071, 0.7071, 0.0000]
    Cu18: [-0.7071, -0.7071, 0.0000]
    Cu19: [-0.7071, -0.7071, 0.0000]
    Cu20: [0.7071, 0.7071, 0.0000]
    Cu21: [0.7071, 0.7071, 0.0000]
    Cu22: [-0.7071, -0.7071, 0.0000]
    Cu23: [-0.7071, -0.7071, 0.0000]
    Cu24: [0.7071, 0.7071, 0.0000]
  MAGMOM = 0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0.7071 0.7071 0.0000   -0.7071 -0.7071 0.0000   -0.7071 -0.7071 0.0000   0.7071 0.7071 0.0000   0.7071 0.7071 0.0000   -0.7071 -0.7071 0.0000   -0.7071 -0.7071 0.0000   0.7071 0.7071 0.0000   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0   0 0 0
...
